<?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>AskApache &#187; RewriteRule</title>
	<atom:link href="http://www.askapache.com/tag/rewriterule/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.askapache.com</link>
	<description>Advanced Web Development</description>
	<lastBuildDate>Fri, 17 May 2013 23:28:11 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Htaccess &#8211; The Ultimate Guide</title>
		<link>http://www.askapache.com/htaccess/htaccess.html</link>
		<comments>http://www.askapache.com/htaccess/htaccess.html#comments</comments>
		<pubDate>Wed, 01 May 2013 13:05:32 +0000</pubDate>
		<dc:creator>AskApache</dc:creator>
				<category><![CDATA[Htaccess]]></category>
		<category><![CDATA[301 Redirects]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[cheatsheet]]></category>
		<category><![CDATA[ErrorDocument]]></category>
		<category><![CDATA[File Permissions]]></category>
		<category><![CDATA[Hacking]]></category>
		<category><![CDATA[Hosting]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[HTTP]]></category>
		<category><![CDATA[HTTP Headers]]></category>
		<category><![CDATA[mod_rewrite]]></category>
		<category><![CDATA[mod_security]]></category>
		<category><![CDATA[mod_status]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Redirect]]></category>
		<category><![CDATA[RedirectMatch]]></category>
		<category><![CDATA[rewrite]]></category>
		<category><![CDATA[RewriteCond]]></category>
		<category><![CDATA[RewriteEngine]]></category>
		<category><![CDATA[RewriteRule]]></category>
		<category><![CDATA[robots.txt]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[SSL]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[tricks]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.askapache.com.com/htaccess/htaccesselite-ultimate-htaccess-article.html</guid>
		<description><![CDATA[<p><p>I discovered these tips and tricks mostly while working as a network security penetration specialist hired to find security holes in web hosting environments.   That is when I started examining htaccess files in great detail and learned about the incredible untapped power of htaccess.  The only avenue on shared-hosting was and is the .htaccess file, and holy freaking fiber-optics.. it's almost as powerful as httpd.conf itself</p></p><p>The post <a href="http://www.askapache.com/htaccess/htaccess.html">Htaccess &#8211; The Ultimate Guide</a> appeared first on <a href="http://www.askapache.com">AskApache</a>.</p>]]></description>
		<wfw:commentRss>http://www.askapache.com/htaccess/htaccess.html/feed/</wfw:commentRss>
		<slash:comments>83</slash:comments>
		</item>
		<item>
		<title>Htaccess Rewrite for Redirecting Uppercase to Lowercase</title>
		<link>http://www.askapache.com/htaccess/rewrite-uppercase-lowercase.html</link>
		<comments>http://www.askapache.com/htaccess/rewrite-uppercase-lowercase.html#comments</comments>
		<pubDate>Tue, 30 Apr 2013 13:21:48 +0000</pubDate>
		<dc:creator>AskApache</dc:creator>
				<category><![CDATA[Htaccess]]></category>
		<category><![CDATA[httpd.conf]]></category>
		<category><![CDATA[mod_rewrite]]></category>
		<category><![CDATA[mod_speling]]></category>
		<category><![CDATA[RewriteCond]]></category>
		<category><![CDATA[RewriteRule]]></category>

		<guid isPermaLink="false">http://www.askapache.com/?p=8870</guid>
		<description><![CDATA[<p><p>Want to redirect all links with any uppercase characters to lowercase using pure mod_rewrite within an .htaccess file?  Sure why not!  OR how to use RewriteMap and mod_speling for those with access to <code>httpd.conf</code></p></p><p>The post <a href="http://www.askapache.com/htaccess/rewrite-uppercase-lowercase.html">Htaccess Rewrite for Redirecting Uppercase to Lowercase</a> appeared first on <a href="http://www.askapache.com">AskApache</a>.</p>]]></description>
		<wfw:commentRss>http://www.askapache.com/htaccess/rewrite-uppercase-lowercase.html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Alternate robots.txt files with Htaccess</title>
		<link>http://www.askapache.com/htaccess/alternate-robots-txt-rewrite.html</link>
		<comments>http://www.askapache.com/htaccess/alternate-robots-txt-rewrite.html#comments</comments>
		<pubDate>Fri, 22 Feb 2013 13:29:18 +0000</pubDate>
		<dc:creator>AskApache</dc:creator>
				<category><![CDATA[Htaccess]]></category>
		<category><![CDATA[RewriteRule]]></category>
		<category><![CDATA[robots.txt]]></category>

		<guid isPermaLink="false">http://www.askapache.com/?p=7966</guid>
		<description><![CDATA[<p><p><a class="IFL" href="http://www.askapache.com/htaccess/alternate-robots-txt-rewrite.html"><img src="http://uploads.askapache.com/2013/02/robots-off-txt-116x116.png" alt="robots-off-txt" width="116" height="116" /></a>So here's the basic idea:  There are 2 sites, a development site and a live site.  They are essentially mirrors of each other in terms of they have the same files. You need to disallow all search engine robots from indexing and crawling the development site, while allowing full crawling of your live site.  Htaccess to the rescue!<br class="C" /></p></p><p>The post <a href="http://www.askapache.com/htaccess/alternate-robots-txt-rewrite.html">Alternate robots.txt files with Htaccess</a> appeared first on <a href="http://www.askapache.com">AskApache</a>.</p>]]></description>
		<wfw:commentRss>http://www.askapache.com/htaccess/alternate-robots-txt-rewrite.html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>phpMyAdmin Shortcuts with .htaccess</title>
		<link>http://www.askapache.com/htaccess/phpmyadmin-rewrites.html</link>
		<comments>http://www.askapache.com/htaccess/phpmyadmin-rewrites.html#comments</comments>
		<pubDate>Thu, 14 Feb 2013 06:05:22 +0000</pubDate>
		<dc:creator>AskApache</dc:creator>
				<category><![CDATA[Htaccess]]></category>
		<category><![CDATA[phpMyAdmin]]></category>
		<category><![CDATA[RewriteRule]]></category>

		<guid isPermaLink="false">http://www.askapache.com/?p=7846</guid>
		<description><![CDATA[<p><p><a class="IFL" href="http://www.askapache.com/htaccess/phpmyadmin-rewrites.html"><img src="http://uploads.askapache.com/2013/02/logo_left.png" alt="logo_left" width="165" height="28" /></a>Use mod_rewrite to enable phpMyAdmin links in the form: <code>/dbname/table/</code><br class="C" /></p></p><p>The post <a href="http://www.askapache.com/htaccess/phpmyadmin-rewrites.html">phpMyAdmin Shortcuts with .htaccess</a> appeared first on <a href="http://www.askapache.com">AskApache</a>.</p>]]></description>
		<wfw:commentRss>http://www.askapache.com/htaccess/phpmyadmin-rewrites.html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mod_Rewrite Security</title>
		<link>http://www.askapache.com/htaccess/mod_rewrite.html</link>
		<comments>http://www.askapache.com/htaccess/mod_rewrite.html#comments</comments>
		<pubDate>Sat, 18 Feb 2012 06:54:18 +0000</pubDate>
		<dc:creator>AskApache</dc:creator>
				<category><![CDATA[Htaccess]]></category>
		<category><![CDATA[mod_rewrite]]></category>
		<category><![CDATA[RewriteCond]]></category>
		<category><![CDATA[RewriteRule]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.askapache.com/?p=7045</guid>
		<description><![CDATA[<p><p><a class="hs hs13" href="http://www.askapache.com/security/mod_rewrite.html" title="Mod_Rewrite Artwork"></a>These are a few of the mod_rewrite uses that <a href="http://blogsecurity.net/">BlogSecurity</a> declared <strong>pushed the boundaries of Mod_Rewrite!</strong>  Some of these snippets are quite exotic and unlike anything you may have seen before, also only for those who understand them as they can kill a website pretty quick.<br class="C" /></p></p><p>The post <a href="http://www.askapache.com/htaccess/mod_rewrite.html">Mod_Rewrite Security</a> appeared first on <a href="http://www.askapache.com">AskApache</a>.</p>]]></description>
		<wfw:commentRss>http://www.askapache.com/htaccess/mod_rewrite.html/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Htaccess Rewrites &#8211; Rewrite Tricks and Tips</title>
		<link>http://www.askapache.com/htaccess/modrewrite-tips-tricks.html</link>
		<comments>http://www.askapache.com/htaccess/modrewrite-tips-tricks.html#comments</comments>
		<pubDate>Sun, 10 Apr 2011 14:05:00 +0000</pubDate>
		<dc:creator>AskApache</dc:creator>
				<category><![CDATA[Htaccess]]></category>
		<category><![CDATA[Redirect]]></category>
		<category><![CDATA[RewriteBase]]></category>
		<category><![CDATA[RewriteCond]]></category>
		<category><![CDATA[RewriteEngine]]></category>
		<category><![CDATA[RewriteLock]]></category>
		<category><![CDATA[RewriteLog]]></category>
		<category><![CDATA[RewriteMap]]></category>
		<category><![CDATA[RewriteOptions]]></category>
		<category><![CDATA[RewriteRule]]></category>

		<guid isPermaLink="false">http://www.askapache.com/htaccess/mod_rewrite-tips-and-tricks.html</guid>
		<description><![CDATA[<p><p><strong>htaccess rewrite</strong> / Mod_Rewrite Tips and Tricks is as glamorous as it sounds!  htaccess rewrite mod_rewrite is just possibly one of the most useful Apache modules and features.  The ability to rewrite requests internally as well as externally is extremely powerful.</p>
<p><a class="hs hs13" href="http://www.askapache.com/htaccess/mod_rewrite-tips-and-tricks.html"></a></p></p><p>The post <a href="http://www.askapache.com/htaccess/modrewrite-tips-tricks.html">Htaccess Rewrites &#8211; Rewrite Tricks and Tips</a> appeared first on <a href="http://www.askapache.com">AskApache</a>.</p>]]></description>
		<wfw:commentRss>http://www.askapache.com/htaccess/modrewrite-tips-tricks.html/feed/</wfw:commentRss>
		<slash:comments>141</slash:comments>
		</item>
		<item>
		<title>HTTP Status Codes and Htaccess ErrorDocuments</title>
		<link>http://www.askapache.com/htaccess/apache-status-code-headers-errordocument.html</link>
		<comments>http://www.askapache.com/htaccess/apache-status-code-headers-errordocument.html#comments</comments>
		<pubDate>Thu, 06 Jan 2011 20:56:15 +0000</pubDate>
		<dc:creator>AskApache</dc:creator>
				<category><![CDATA[Htaccess]]></category>
		<category><![CDATA[403]]></category>
		<category><![CDATA[404]]></category>
		<category><![CDATA[500]]></category>
		<category><![CDATA[503]]></category>
		<category><![CDATA[mod_rewrite]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[RewriteCond]]></category>
		<category><![CDATA[RewriteRule]]></category>

		<guid isPermaLink="false">http://www.askapache.com.com/htaccess/wow-i-served-a-page-for-every-single-http-status-code-and-saved-headers-and-content.html</guid>
		<description><![CDATA[<p><p>There are a total of <a href="http://www.askapache.com/htaccess/apache-status-code-headers-errordocument.html#apache-response-codes-57">57 HTTP Status Codes</a> recognized by the Apache Web Server.  Wouldn't you like to see what all those headers and their output, ErrorDocuments look like?</p></p><p>The post <a href="http://www.askapache.com/htaccess/apache-status-code-headers-errordocument.html">HTTP Status Codes and Htaccess ErrorDocuments</a> appeared first on <a href="http://www.askapache.com">AskApache</a>.</p>]]></description>
		<wfw:commentRss>http://www.askapache.com/htaccess/apache-status-code-headers-errordocument.html/feed/</wfw:commentRss>
		<slash:comments>21</slash:comments>
		</item>
		<item>
		<title>Actual Htaccess Files from My Server</title>
		<link>http://www.askapache.com/htaccess/real-world-htaccess-files.html</link>
		<comments>http://www.askapache.com/htaccess/real-world-htaccess-files.html#comments</comments>
		<pubDate>Sat, 17 Apr 2010 15:06:22 +0000</pubDate>
		<dc:creator>AskApache</dc:creator>
				<category><![CDATA[Htaccess]]></category>
		<category><![CDATA[RewriteCond]]></category>
		<category><![CDATA[RewriteEngine]]></category>
		<category><![CDATA[RewriteRule]]></category>

		<guid isPermaLink="false">http://www.askapache.com/?p=4357</guid>
		<description><![CDATA[<p><pre>#### No https except to wp-admin -
# If the request is empty ( implies fopen or normal file access by a php script )
RewriteCond %{THE_REQUEST} ^$ [OR]
&#160;
# OR if the request if for wp-admin or wp-login.php
RewriteCond %{REQUEST_URI} ^/(wp-admin&#124;wp-login.php).*$ [NC,OR]
&#160;
# OR if the Referer is https
RewriteCond %{HTTP_REFERER} ^https://www.askapache.com/.*$ [NC]
&#160;
# THEN skip the following rule, basically all this does is force https or badhost to be redirected
# BUT because of the above 3 rewritecond&#039;s, this won&#039;t break poorly written admin scripts
RewriteRule .* - [S=1]
&#160;
RewriteCond %{HTTPS} =on [OR]
RewriteCond %{HTTP_HOST} !^www.askapache.com$ [NC]
RewriteRule .* http://www.askapache.com%{REQUEST_URI} [R=301,L]
&#160;
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9} /(wp-admin/.*&#124;wp-login.php.*) HTTP/ [NC]
RewriteCond %{HTTPS} !=on
RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]</pre></p><p>The post <a href="http://www.askapache.com/htaccess/real-world-htaccess-files.html">Actual Htaccess Files from My Server</a> appeared first on <a href="http://www.askapache.com">AskApache</a>.</p>]]></description>
		<wfw:commentRss>http://www.askapache.com/htaccess/real-world-htaccess-files.html/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Crazy Advanced Mod_Rewrite Debug Tutorial</title>
		<link>http://www.askapache.com/htaccess/crazy-advanced-mod_rewrite-tutorial.html</link>
		<comments>http://www.askapache.com/htaccess/crazy-advanced-mod_rewrite-tutorial.html#comments</comments>
		<pubDate>Mon, 11 May 2009 17:55:32 +0000</pubDate>
		<dc:creator>AskApache</dc:creator>
				<category><![CDATA[Htaccess]]></category>
		<category><![CDATA[mod_rewrite]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[RewriteCond]]></category>
		<category><![CDATA[RewriteRule]]></category>

		<guid isPermaLink="false">http://www.askapache.com/?p=1209</guid>
		<description><![CDATA[<p><p><strong>Note:  Extremely ILL Content</strong><br />Find the key to unlocking mod_rewrite and you WILL be sick..  sick with a diamond disease on your wrist!<br /><a class="hs hs13" href="http://uploads.askapache.com/2008/08/mod_rewrite_ascii.png"></a></p></p><p>The post <a href="http://www.askapache.com/htaccess/crazy-advanced-mod_rewrite-tutorial.html">Crazy Advanced Mod_Rewrite Debug Tutorial</a> appeared first on <a href="http://www.askapache.com">AskApache</a>.</p>]]></description>
		<wfw:commentRss>http://www.askapache.com/htaccess/crazy-advanced-mod_rewrite-tutorial.html/feed/</wfw:commentRss>
		<slash:comments>39</slash:comments>
		</item>
		<item>
		<title>Smart HTTP and HTTPS .htaccess Rewrite</title>
		<link>http://www.askapache.com/htaccess/http-https-rewriterule-redirect.html</link>
		<comments>http://www.askapache.com/htaccess/http-https-rewriterule-redirect.html#comments</comments>
		<pubDate>Tue, 29 Apr 2008 16:34:47 +0000</pubDate>
		<dc:creator>AskApache</dc:creator>
				<category><![CDATA[Htaccess]]></category>
		<category><![CDATA[HTTPS]]></category>
		<category><![CDATA[RewriteRule]]></category>
		<category><![CDATA[SSL]]></category>

		<guid isPermaLink="false">http://www.askapache.com/htaccess/http-https-rewriterule-redirect.html</guid>
		<description><![CDATA[<p><p><a href="http://www.askapache.com/htaccess/http-https-rewriterule-redirect.html" class="IFL hs hs06" title="HTTP to HTTPS Redirects with mod_rewrite"></a>This is freaking sweet if you use SSL I promise you!  Basically instead of having to check for HTTPS using a <code>RewriteCond %{HTTPS} =on</code> for every redirect that can be either HTTP or HTTPS, I set an environment variable once with the value "http" or "https" if HTTP or HTTPS is being used for that request, and use that env variable in the RewriteRule.<br class="C" /></p></p><p>The post <a href="http://www.askapache.com/htaccess/http-https-rewriterule-redirect.html">Smart HTTP and HTTPS .htaccess Rewrite</a> appeared first on <a href="http://www.askapache.com">AskApache</a>.</p>]]></description>
		<wfw:commentRss>http://www.askapache.com/htaccess/http-https-rewriterule-redirect.html/feed/</wfw:commentRss>
		<slash:comments>28</slash:comments>
		</item>
	</channel>
</rss>
