<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>
<channel>
	<title>Richard Castera &#187; Apache</title>
	<atom:link href="http://www.richardcastera.com/category/apache/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.richardcastera.com</link>
	<description>Application Developer/Designer</description>
	<lastBuildDate>Sun, 29 Aug 2010 00:02:30 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Drupal &#8211; How to install Drush</title>
		<link>http://www.richardcastera.com/2010/08/28/drupal-how-to-install-drush/</link>
		<comments>http://www.richardcastera.com/2010/08/28/drupal-how-to-install-drush/#comments</comments>
		<pubDate>Sun, 29 Aug 2010 00:02:30 +0000</pubDate>
		<dc:creator>Richard</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Drupal]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Web Resources]]></category>
		<guid isPermaLink="false">http://www.richardcastera.com/?p=1293</guid>
		<description><![CDATA[What is Drush? It&#8217;s a command line shell and scripting interface for Drupal. The Drush Package Manager allows you to download, enable, disable, uninstall, update modules/themes/profiles/translations from the command line in a very simple way (apt-get style) &#8211; just type, drush dl views and drush pm-enable views in a Drupal directory to install the Views [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.richardcastera.com/wp-content/uploads/2010/08/drush_logo-black.png" alt="Drush Logo" title="Drush" width="218" height="215" align="left" style="margin: 0px 10px 0px 0px;" /></a><h4>What is <a href="http://drush.ws/" target="_blank">Drush</a>?</h4> It&#8217;s a command line shell and scripting interface for Drupal. The Drush Package Manager allows you to download, enable, disable, uninstall, update modules/themes/profiles/translations from the command line in a very simple way (apt-get style) &#8211; just type,
<div style="margin: 0px 0px 0px 230px;">
<pre class="brush: plain;">
drush dl views
</pre>
</div>
and
<div style="margin: 0px 0px 0px 230px;">
<pre class="brush: plain;">
drush pm-enable views
</pre>
</div>
in a Drupal directory to install the Views project! Additionally, the Drush Package Manager also allows you to update all your modules and even Drupal core with just one command,
<pre class="brush: plain;">
drush pm-update
</pre>
</p>
<span id="more-1293"></span>
<h4 style="margin: 20px 0px 0px 0px;">How to install Drush</h4>
<p>
<ol>
<li><a href="http://drupal.org/project/drush" target="_blank">Download the current version of the Drush Package from the Drupal website</a>.</li>
<li>Upload the folder to the root directory of your server. I did this on a shared environment.</li>
<li>Login to your server via shell.</li>
<li>Make the &#8216;drush&#8217; command executable: <pre class="brush: plain;">$ chmod u+x ~/drush/drush</pre></li>
<li>create an alias to drush: <pre class="brush: plain;">$ alias drush='~/drush/drush'</pre> Now, you must log out and then log back in again or re-load your bash configuration file to apply your changes to your current session: <pre class="brush: plain;">$ source .bashrc</pre></li>
<li>Start using drush by running &#8220;drush&#8221; from your Drupal root directory.</li>
</ol>
</p>]]></content:encoded>
			<wfw:commentRss>http://www.richardcastera.com/2010/08/28/drupal-how-to-install-drush/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Enable curl with XAMPP</title>
		<link>http://www.richardcastera.com/2010/05/04/enable-curl-with-xampp/</link>
		<comments>http://www.richardcastera.com/2010/05/04/enable-curl-with-xampp/#comments</comments>
		<pubDate>Wed, 05 May 2010 01:28:07 +0000</pubDate>
		<dc:creator>Richard</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[xampp]]></category>
		<guid isPermaLink="false">http://www.richardcastera.com/?p=1042</guid>
		<description><![CDATA[cURL is disabled by default in your XAMPP installation. To enable it, you have to modify the php.ini files in your XAMPP folder. Follow the steps below to get it up and running. Locate the following files: C:\Program Files\xampp\apache\bin\php.ini C:\Program Files\xampp\php\php.ini C:\Program Files\xampp\php\php4\php.ini Uncomment the following line on your php.ini file by removing the semicolon. [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://curl.haxx.se/" target="_blank">cURL</a> is disabled by default in your <a href="/2010/04/04/how-to-setup-a-local-web-server-on-your-computer-using-xampp/">XAMPP installation</a>. To enable it, you have to modify the php.ini files in your XAMPP folder. Follow the steps below to get it up and running.</p>
<ol>
<li>Locate the following files:<br />
<pre class="brush: plain;">
C:\Program Files\xampp\apache\bin\php.ini
C:\Program Files\xampp\php\php.ini
C:\Program Files\xampp\php\php4\php.ini
</pre>
</li>
<li>Uncomment the following line on your php.ini file by removing the semicolon.<br />
<pre class="brush: plain;">
;extension=php_curl.dll
</pre>
</li>
<li>Restart your Apache server.</li>
<li>Check your phpinfo if curl was properly enabled.</li>]]></content:encoded>
			<wfw:commentRss>http://www.richardcastera.com/2010/05/04/enable-curl-with-xampp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to setup a local web server on your computer using XAMPP</title>
		<link>http://www.richardcastera.com/2010/04/04/how-to-setup-a-local-web-server-on-your-computer-using-xampp/</link>
		<comments>http://www.richardcastera.com/2010/04/04/how-to-setup-a-local-web-server-on-your-computer-using-xampp/#comments</comments>
		<pubDate>Sun, 04 Apr 2010 17:14:08 +0000</pubDate>
		<dc:creator>Richard</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Web Resources]]></category>
		<category><![CDATA[xampp]]></category>
		<guid isPermaLink="false">http://www.richardcastera.com/?p=1048</guid>
		<description><![CDATA[Web development work should always be done locally. When developing a website, all the development work should be done on a local LAMP Stack environment installed on your computer. That way, the production time is greatly reduced and you can fully test your work before launching. When you are completely done developing your project, the [...]]]></description>
			<content:encoded><![CDATA[<a href="http://www.richardcastera.com/wp-content/uploads/2010/03/xampp.gif"><img src="http://www.richardcastera.com/wp-content/uploads/2010/03/xampp.gif" alt="" title="xampp" width="500" height="156" class="alignnone size-full wp-image-1062" /></a>
<p>Web development work should always be done locally. When developing a website, all the development work should be done on a local <a href="http://en.wikipedia.org/wiki/LAMP_(software_bundle)" title="Lamp Stack" target="_blank">LAMP Stack</a> environment installed on your computer. That way, the production time is greatly reduced and you can fully test your work before launching.</p>
<p>When you are completely done developing your project, the migration to the live server is seamless. Here are the simple steps to install a local server on your PC to easily develop websites.</p>
<p>This article applies to the installation on Windows 98, NT, 2000, 2003, XP and Vista, of Apache, MySQL, PHP + PEAR, Perl, mod_php, mod_perl, mod_ssl, OpenSSL, phpMyAdmin, Webalizer, Mercury Mail Transport System for Win32 and NetWare Systems v3.32, Ming, JpGraph, FileZilla FTP Server, mcrypt, eAccelerator, SQLite, and WEB-DAV + mod_auth_mysql.</p>
<h4>Installing XAMPP on your computer</h4>
<ol>
<li>First, download <a href="http://www.apachefriends.org/en/xampp-windows.html" target="_blank">XAMPP for Windows Installer</a></li>
<li>Then run the installer on your computer and make sure that your Windows firewall unblocks Apache.</li>
<li>Run the Apache administrator.</li>
<li>Open your browser and go to <a href="http://127.0.0.1" target="_blank">http://127.0.0.1</a> – If all went well, a screen will appear where you can choose your language.</li>
<li>Go to <a href="http://127.0.0.1/security/xamppsecurity.php" target="_blank">http://127.0.0.1/security/xamppsecurity.php</a> and setup a password (it ill be used for your databases), and click on &#8220;Password Changing&#8221;.</li>
</ol>
<p>Congratulations! You&#8217;re done! Now put your website&#8217;s files in a new directory under C:\xampp\htdocs\ (if you installed xampp in C:\xampp). For example: C:\xampp\htdocs\myproject\; and setup your databases using PHPMyAdmin located here <a href="http://127.0.0.1/phpmyadmin/" target="_blank">http://127.0.0.1/phpmyadmin/</a>.</p>
<h4>Configuring Mod Rewrite</h4>
<p>To finalize your installation, and make your development work much easier, go through the following steps to enable Mod Rewrite. This enables you to use fancy permalinks without the index.php appendage.</p>
<ol>
<li>Navigate to C:\xampp\apache\conf\httpd.conf</li>
<li>
Open up httpd.conf in notepad and look for this line:<br />
<pre class="brush: plain;">
#LoadModule rewrite_module modules/mod_rewrite.so
</pre>
</li>
<li>
Uncomment it so that it reads:<br />
<pre class="brush: plain;">
LoadModule rewrite_module modules/mod_rewrite.so
</pre>
</li>
<li>Next, search for AllowOverride None and change it to AllowOverride All.</li>
<li>Restart Apache by typing services.msc in either the command prompt or Start Search prompt in Vista.</li>
</ol>
<h4>Personalized Domain for your Local Environment</h4>
<p>I&#8217;ve set my local environment to mimic my live environment as much as possible. For example, to access the local environment for my blog, I type this in my browser (http://richardcastera.dev). Here is how to set that up for each project:</p>
<ol>
<li>Navigate to C:\Windows\System32\drivers\etc\ and open the host file in a notepad editor. Make sure the following lines are written in the file:
<pre class="brush: plain;">
127.0.0.1 localhost
::1 localhost
</pre>
</li>
<li>Now add the following line to access your website locally via the URL myproject.dev (or any other URL you&#8217;d like):
<pre class="brush: plain;">127.0.0.1    myproject.dev</pre></li>
<li>Finally, open the file C:\xampp\apache\conf\extra\httpd-vhosts.conf in a notepad editor, and add the following lines:
<pre class="brush: plain;">
      NameVirtualHost *:80
      &lt;VirtualHost *:80&gt;
      DocumentRoot “C:/xampp/htdocs”
      ServerName localhost
      &lt;/VirtualHost&gt;
      &lt;VirtualHost *:80&gt;
      ServerName myproject.dev
      ServerAdmin webmaster@localhost
      DocumentRoot “C:\xampp\htdocs\myproject”
      &lt;/VirtualHost&gt;
</pre>
</li>
</ol>
<p>That&#8217;s it! Hope you enjoyed the post!</p>]]></content:encoded>
			<wfw:commentRss>http://www.richardcastera.com/2010/04/04/how-to-setup-a-local-web-server-on-your-computer-using-xampp/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How to Create a Custom 404 Error page with .htaccess</title>
		<link>http://www.richardcastera.com/2009/10/21/how-to-create-a-custom-404-error-page-with-htaccess/</link>
		<comments>http://www.richardcastera.com/2009/10/21/how-to-create-a-custom-404-error-page-with-htaccess/#comments</comments>
		<pubDate>Wed, 21 Oct 2009 14:00:06 +0000</pubDate>
		<dc:creator>Richard</dc:creator>
				<category><![CDATA[Apache]]></category>
		<guid isPermaLink="false">http://www.richardcastera.com/?p=918</guid>
		<description><![CDATA[Everyone&#8217;s encountered those standard 404 error pages that yield little or no information. Most new systems have this feature built in by default and often times are pretty fancy with informative to funny graphics and lots of options on what to do next but, if your working on updating an old site not using dynamically [...]]]></description>
			<content:encoded><![CDATA[<p>Everyone&#8217;s encountered those standard 404 error pages that yield little or no information. Most new systems have this feature built in by default and often times are pretty fancy with informative to funny graphics and lots of options on what to do next but, if your working on updating an old site not using dynamically based web pages then, your going to have to add one manually. For your user&#8217;s experience, it&#8217;s better to provide a helpful error message and links to where they can continue on their quest for information. You don&#8217;t want to scare your visitors away do you? Here&#8217;s how to add your own custom 404 error page to your website:</p>
<p>If you don&#8217;t already have an .htaccess file in your servers root, go ahead and create one. Now you need to instruct .htaccess where your custom error page is. In this example, I have the 404 document which I created with my editor that provides lots of useful information for users to continue browsing my site. Now add this line to your .htaccess file and that&#8217;s it!</p>
<pre class="brush: plain;">
ErrorDocument 404 /404.html
</pre>]]></content:encoded>
			<wfw:commentRss>http://www.richardcastera.com/2009/10/21/how-to-create-a-custom-404-error-page-with-htaccess/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Disallow hotlinking while allowing requests from robots.txt and favicons</title>
		<link>http://www.richardcastera.com/2009/10/19/disallow-hotlinking-while-allowing-requests-from-robots-txt-and-favicons/</link>
		<comments>http://www.richardcastera.com/2009/10/19/disallow-hotlinking-while-allowing-requests-from-robots-txt-and-favicons/#comments</comments>
		<pubDate>Mon, 19 Oct 2009 19:40:04 +0000</pubDate>
		<dc:creator>Richard</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[My Thoughts]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[Web Resources]]></category>
		<category><![CDATA[htaccess]]></category>
		<guid isPermaLink="false">http://www.richardcastera.com/?p=879</guid>
		<description><![CDATA[We all hate Leechers. Here&#8217;s how to stop them in their tracks from stealing your images and your bandwidth! Options +FollowSymLinks RewriteEngine on RewriteCond %{REQUEST_URI} !(^/robots\.txt&#124;\.ico)$ RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^http://(www\.)?example.com(/)?.*$ [NC] RewriteRule .*\.(gif&#124;jpg&#124;jpeg&#124;bmp&#124;pdf)$ [F,L]]]></description>
			<content:encoded><![CDATA[<p>
We all hate <a href="http://en.wikipedia.org/wiki/Inline_linking">Leechers</a>. Here&#8217;s how to stop them in their tracks from stealing your images and your bandwidth!
</p>
<pre class="brush: plain;">
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{REQUEST_URI} !(^/robots\.txt|\.ico)$
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?example.com(/)?.*$ [NC]
RewriteRule .*\.(gif|jpg|jpeg|bmp|pdf)$ [F,L]
</pre>]]></content:encoded>
			<wfw:commentRss>http://www.richardcastera.com/2009/10/19/disallow-hotlinking-while-allowing-requests-from-robots-txt-and-favicons/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Creating an .htaccess file on Windows</title>
		<link>http://www.richardcastera.com/2009/10/10/creating-an-htaccess-file-on-windows/</link>
		<comments>http://www.richardcastera.com/2009/10/10/creating-an-htaccess-file-on-windows/#comments</comments>
		<pubDate>Sun, 11 Oct 2009 00:38:59 +0000</pubDate>
		<dc:creator>Richard</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[Web Resources]]></category>
		<category><![CDATA[htaccess]]></category>
		<guid isPermaLink="false">http://www.richardcastera.com/?p=859</guid>
		<description><![CDATA[Everyone who has tried creating a .htaccess on windows knows that Windows Explorer does not accept the &#8216;.&#8217; character as the first character of a file. For most of you this may be old stuff, but for the newbies, the quick way to create a file that starts with a &#8216;.&#8217; is actually pretty simple. [...]]]></description>
			<content:encoded><![CDATA[<p>Everyone who has tried creating a .htaccess on windows knows that Windows Explorer does not accept the &#8216;.&#8217; character as the first character of a file. For most of you this may be old stuff, but for the newbies, the quick way to create a file that starts with a &#8216;.&#8217; is actually pretty simple.</p>
<p>Open notepad and save the document with file name .htaccess with the &#8216;save as type&#8217; set to &#8216;All Files&#8217;; or save the document with file name as &#8220;.htaccess&#8221; including the quotes. Hope this helps someone!</p>]]></content:encoded>
			<wfw:commentRss>http://www.richardcastera.com/2009/10/10/creating-an-htaccess-file-on-windows/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>htaccess &#8211; How to redirect all http (port 80) requests to https (port 443)</title>
		<link>http://www.richardcastera.com/2009/09/14/how-to-redirect-all-http-port-80-requests-to-https-port-443-with-htaccess/</link>
		<comments>http://www.richardcastera.com/2009/09/14/how-to-redirect-all-http-port-80-requests-to-https-port-443-with-htaccess/#comments</comments>
		<pubDate>Tue, 15 Sep 2009 00:27:14 +0000</pubDate>
		<dc:creator>Richard</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[Web Resources]]></category>
		<category><![CDATA[htaccess]]></category>
		<guid isPermaLink="false">http://www.richardcastera.com/?p=864</guid>
		<description><![CDATA[Sometimes you may need to redirect http requests on port 80 to (https) on port 443. This can easily be accomplished with .htaccess. RewriteEngine on RewriteCond %{SERVER_PORT} !^443$ RewriteRule ^/(.*) https://%{SERVER_NAME}/$1 [NC,R,L]]]></description>
			<content:encoded><![CDATA[<p>Sometimes you may need to redirect http requests on port 80 to (https) on port 443. This can easily be accomplished with .htaccess.</p>
<pre class="brush: plain;">
RewriteEngine on
RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^/(.*) https://%{SERVER_NAME}/$1 [NC,R,L]
</pre>]]></content:encoded>
			<wfw:commentRss>http://www.richardcastera.com/2009/09/14/how-to-redirect-all-http-port-80-requests-to-https-port-443-with-htaccess/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Using SSH and Unix commands</title>
		<link>http://www.richardcastera.com/2009/08/01/using-ssh-and-unix-commands/</link>
		<comments>http://www.richardcastera.com/2009/08/01/using-ssh-and-unix-commands/#comments</comments>
		<pubDate>Sat, 01 Aug 2009 16:36:55 +0000</pubDate>
		<dc:creator>Richard</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Web Resources]]></category>
		<category><![CDATA[SSH]]></category>
		<guid isPermaLink="false">http://www.richardcastera.com/?p=708</guid>
		<description><![CDATA[Having some basic knowledge of SSH and Unix commands is very useful. Developed in 1995, SSH (Secure Shell) was created as a secure alternative to Telnet. Telnet is a protocol allowing for command line access to a Unix, Linux or FreeBSD based remote computer. I&#8217;ve listed some basic commands to get you familiar with them. [...]]]></description>
			<content:encoded><![CDATA[<p>Having some basic knowledge of SSH and Unix commands is very useful. Developed in 1995, SSH (Secure Shell) was created as a secure alternative to Telnet. Telnet is a protocol allowing for command line access to a Unix, Linux or FreeBSD based remote computer. I&#8217;ve listed some basic commands to get you familiar with them.</p>
The cd command is used to move to a specific directory.
<pre class="brush: plain;">
Command: cd
Format: cd /directory/to/browse
</pre>
The cp command will copy the file or folder from the source, to the destination.
<pre class="brush: plain;">
Command: cp
Format: cp /directory/source /directory/destination
</pre>
mkdir creates a directory.
<pre class="brush: plain;">
Command: mkdir
Format: mkdir /directory_to_create
</pre>
The rmdir command deletes a directory.
<pre class="brush: plain;">
Command: rmdir
Format: rmdir /directory/to/delete
</pre>
The rm command deletes a file.
<pre class="brush: plain;">
Command: rm -f
Format: rm -f filename
</pre>
The mv command will rename or move a file stated in the first portion to the name or location stated in the second portion.
<pre class="brush: plain;">
Command: mv
Format: mv /directory/you/want/to/rename/or/move /new/directory/name/or/location
</pre>
This command will tar zip the files in the directory specified in the second portion into a tar file specified in the first portion.
<pre class="brush: plain;">
Command: tar cvf
Format: tar cvf filename.tar.gz /directory/you/wish/to/archive
</pre>
The tar -xvf will extract all files from the tarball specified into the directory you are currently in.
<pre class="brush: plain;">
Command: tar -xvf
Format: tar -xvf filename.tar.gz
</pre>
This will create a zip file, with the name specified in the first portion from the file or directory listed in the second portion.
<pre class="brush: plain;">
Command: zip
Format: zip filename.zip /file/or/folder/you/want/to/zip
</pre>
This command will unzip or un pack the named zip file, into the directory you&#8217;re currently in.
<pre class="brush: plain;">
Command: unzip
Format: unzip filename.zip
</pre>
The Ls command lists files, and folders within the directory you specify
<pre class="brush: plain;">
Command: ls
Format: ls /directory/you/wish/to/list/files/
</pre>
This will add a forward slash to the directory names within the directory you specify
<pre class="brush: plain;">
Command: ls -f
Format: ls -f /directory/you/wish/to/list/files/
</pre>
This will show &#8220;hidden&#8221; files in the directory you specify
<pre class="brush: plain;">
Command: ls -a
Format: ls -a /directory/you/wish/to/list/files/
</pre>
This command shows detailed info about each file in the directory you specify.
<pre class="brush: plain;">
Command: ls -l
Format: ls -l /directory/you/wish/to/list/files/
</pre>
<p>Also, a lightweight, freeware application which supports SSH commands that I use is, <a href="http://www.chiark.greenend.org.uk/~sgtatham/putty/" title="PuTTY Shell Client" target="_blank">PuTTY.</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.richardcastera.com/2009/08/01/using-ssh-and-unix-commands/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>.htaccess &#8211; Limit website access by IP</title>
		<link>http://www.richardcastera.com/2009/06/01/htaccess-limit-website-access-by-ip/</link>
		<comments>http://www.richardcastera.com/2009/06/01/htaccess-limit-website-access-by-ip/#comments</comments>
		<pubDate>Mon, 01 Jun 2009 22:57:44 +0000</pubDate>
		<dc:creator>Richard</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Web Resources]]></category>
		<category><![CDATA[Resources]]></category>
		<guid isPermaLink="false">http://www.richardcastera.com/?p=470</guid>
		<description><![CDATA[I&#8217;ve been asked many times how to limit website access by allowable IP&#8217;s. This is fairly simple to accomplish with .htaccess. Simply follow the steps below: Create a file and name it .htaccess. Paste the code into it. Replace 255.255.255.255 with you IP address. (If you don&#8217;t know it, you can get it here: WhatsMyIP) [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been asked many times how to limit website access by allowable IP&#8217;s. This is fairly simple to accomplish with .htaccess. Simply follow the steps below:</p>
<ol>
<li>Create a file and name it .htaccess. Paste the code into it. Replace 255.255.255.255 with you IP address. (If you don&#8217;t know it, you can get it here: <a href="http://www.whatsmyip.org/" target="_blank">WhatsMyIP</a>)</li>
<li>
<pre class="brush: plain;">
order deny,allow
deny from all
allow from 255.255.255.255
</pre>
</li>
<li>Once the file is created, put it in the root directory. That&#8217;s it!</li>
</ol>]]></content:encoded>
			<wfw:commentRss>http://www.richardcastera.com/2009/06/01/htaccess-limit-website-access-by-ip/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Adding 301 redirects using htaccess</title>
		<link>http://www.richardcastera.com/2008/06/07/adding-301-redirects-using-htaccess/</link>
		<comments>http://www.richardcastera.com/2008/06/07/adding-301-redirects-using-htaccess/#comments</comments>
		<pubDate>Sat, 07 Jun 2008 16:03:02 +0000</pubDate>
		<dc:creator>Richard</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[SEO]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[htaccess]]></category>
		<guid isPermaLink="false">http://www.richardcastera.com/?p=7</guid>
		<description><![CDATA[It&#8217;s easy adding 301 redirects to your website using Apache&#8217;s htaccess. A 301 redirect is the most efficient and Search Engine Friendly method for web page redirection. It&#8217;s not difficult to implement and will preserve your search engine rankings as well. So, basically how this works is when someone tries to access your website without [...]]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s easy adding 301 redirects to your website using Apache&#8217;s htaccess.  A 301 redirect is the most efficient and <strong>Search Engine Friendly</strong> method for web page redirection. It&#8217;s not difficult to implement and will preserve your search engine rankings as well.</p>
<p>So, basically how this works is when someone tries to access your website without the (www), it will redirect the URL to your website with the www.</p>
<p>To implement this for your website follow these instructions:</p>
<ol>
	<li>Open up notepad or any other text editor and copy and paste the commands below.</li>
	<li>Change (yourdomain) to your domain name.</li>
	<li>Save the file with this name: (.htaccess). There is no file name.</li>
	<li>Upload it to the root directory of your website.</li>
</ol>
<br />
<pre class="brush: plain;">
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{HTTP_HOST} ^yourdomain\.com$ [NC]
RewriteRule ^(.*)$ http://www.yourdomain.com/$1 [R=301,L]
</pre>]]></content:encoded>
			<wfw:commentRss>http://www.richardcastera.com/2008/06/07/adding-301-redirects-using-htaccess/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.414 seconds -->
