<?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>Shami&#039;s Blog &#187; URL</title>
	<atom:link href="http://blog.al-shami.net/tag/url/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.al-shami.net</link>
	<description>A Mushroom A Day Keeps The Koopas Away</description>
	<lastBuildDate>Wed, 03 Aug 2011 18:39:03 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Apache, Rewrite Rules, Redirection, and Multiple Aliases</title>
		<link>http://blog.al-shami.net/2007/03/apache-rewrite-rules-and-multiple-aliases/</link>
		<comments>http://blog.al-shami.net/2007/03/apache-rewrite-rules-and-multiple-aliases/#comments</comments>
		<pubDate>Wed, 14 Mar 2007 09:43:14 +0000</pubDate>
		<dc:creator>Mohammad Al-Shami</dc:creator>
				<category><![CDATA[Technical]]></category>
		<category><![CDATA[NC]]></category>
		<category><![CDATA[URL]]></category>

		<guid isPermaLink="false">http://blog.al-shami.net/?p=65</guid>
		<description><![CDATA[One of our clients has a website that you can go to using multiple URLs. The server was set up in a way which does a redirection to point into a sub folder. This redirection changed the URL used to a specific one, and the client didn&#8217;t like that. In apache httpd, here is the [...]]]></description>
			<content:encoded><![CDATA[<p>One of our clients has a website that you can go to using multiple URLs. The server was set up in a way which does a redirection to point into a sub folder. This redirection changed the URL used to a specific one, and the client didn&#8217;t like that.</p>
<p>In apache httpd, here is the fix to this to your virtual host:</p>
<pre><code>RewriteCond %{REQUEST_URI} ^/$ [NC]
RewriteRule "^/$" "Path/To/Folder" [R]</code></pre>
<p>The first line is a condition that only runs the second line if the request was to the root of the web site, the [NC] makes the condition case insensitiv (Not that it actually matters here <img src='http://blog.al-shami.net/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> )</p>
<p>The second line redirects the request to http://domain.tld to http://domain.tl/Path/To/Folder and the [R] is to tell the browser to redirect the URL in the address bar to that address.<br />
Hope this is of benifit to someone.</p>
<p>Shami</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.al-shami.net/2007/03/apache-rewrite-rules-and-multiple-aliases/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- This Quick Cache file was built for (  blog.al-shami.net/tag/url/feed/ ) in 0.31463 seconds, on May 22nd, 2012 at 10:48 am UTC. -->
<!-- This Quick Cache file will automatically expire ( and be re-built automatically ) on May 22nd, 2012 at 11:48 am UTC -->
