<?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>Web Surf Shack &#187; rewriterule</title>
	<atom:link href="http://www.websurfshack.net/tag/rewriterule/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.websurfshack.net</link>
	<description>Waxing your internet surf board</description>
	<lastBuildDate>Wed, 21 Apr 2010 07:58:19 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>ModRewrite: File existance check</title>
		<link>http://www.websurfshack.net/2009/07/modrewrite-file-existance-check/</link>
		<comments>http://www.websurfshack.net/2009/07/modrewrite-file-existance-check/#comments</comments>
		<pubDate>Wed, 01 Jul 2009 14:35:24 +0000</pubDate>
		<dc:creator>Alan</dc:creator>
				<category><![CDATA[Useful tidbits]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[mod_rewrite]]></category>
		<category><![CDATA[rewrite]]></category>
		<category><![CDATA[rewritecond]]></category>
		<category><![CDATA[rewriterule]]></category>

		<guid isPermaLink="false">http://www.websurfshack.net/?p=314</guid>
		<description><![CDATA[We have written about mod_rewrite before, but did you know that you can check if a file (or directory) exists before you attempt to redirect to it? Here&#8217;s how:
RewriteCond %{DOCUMENT_ROOT}/files/%{REQUEST_URI} -f
RewriteRule ^/([^/]*)$ /files/$1 [PT]
The RewriteCond checks for the existance of a file in the specified path, this is done with the special mod_rewrite rule -f. [...]]]></description>
		<wfw:commentRss>http://www.websurfshack.net/2009/07/modrewrite-file-existance-check/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Rewriting the Query String</title>
		<link>http://www.websurfshack.net/2009/04/rewriting-the-query-string/</link>
		<comments>http://www.websurfshack.net/2009/04/rewriting-the-query-string/#comments</comments>
		<pubDate>Tue, 21 Apr 2009 13:30:11 +0000</pubDate>
		<dc:creator>james</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[rewrite]]></category>
		<category><![CDATA[rewritecond]]></category>
		<category><![CDATA[rewriterule]]></category>

		<guid isPermaLink="false">http://www.websurfshack.net/?p=278</guid>
		<description><![CDATA[Sometimes you want to redirect the user to a new page based on a specific query string value. Heres Â how to do that:

RewriteCond %{QUERY_STRING} foo=bar&#038;bim=bam
RewriteRule ^horrible.php$ /farbetter.html? [R=302]

This redirects all traffic going to &#8220;horrible.php?foo=bar&#038;bim=bam&#8221; to goto &#8220;farbetter.html&#8221;. Note that for all other querystring vars horrible.php is still available.
]]></description>
		<wfw:commentRss>http://www.websurfshack.net/2009/04/rewriting-the-query-string/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Managing multiple domain names</title>
		<link>http://www.websurfshack.net/2009/02/managing-multiple-domain-names/</link>
		<comments>http://www.websurfshack.net/2009/02/managing-multiple-domain-names/#comments</comments>
		<pubDate>Fri, 13 Feb 2009 11:18:14 +0000</pubDate>
		<dc:creator>james</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[domain name]]></category>
		<category><![CDATA[rewritecond]]></category>
		<category><![CDATA[rewriterule]]></category>

		<guid isPermaLink="false">http://www.websurfshack.net/?p=183</guid>
		<description><![CDATA[Multiple domains pointing to a single site? Want to divert the traffic based on domain name? Then this is the simple two liner to do it without faffing with virtualhosts.

RewriteCond %{HTTP_HOST} ^(www\.)?mywebsite.com$
RewriteRule Â  Â ^/$ Â /mywebsite.html [L]
 
RewriteCond %{HTTP_HOST} ^(www\.)?myotherwebsite.com$
RewriteRule    ^/$  /myotherwebsite.html [L]
]]></description>
		<wfw:commentRss>http://www.websurfshack.net/2009/02/managing-multiple-domain-names/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
