<?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; htaccess</title>
	<atom:link href="http://www.richardcastera.com/tag/htaccess/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>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>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.317 seconds -->
