<?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 Programming Notes &#187; Apache</title>
	<atom:link href="http://www.theredplanet.org/category/apache/feed" rel="self" type="application/rss+xml" />
	<link>http://www.theredplanet.org</link>
	<description>Some information might be useful</description>
	<lastBuildDate>Mon, 22 Dec 2008 12:32:15 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Apache ModRewrite all .html &gt; index.php</title>
		<link>http://www.theredplanet.org/apache/apache-modrewrite-all-html-indexphp</link>
		<comments>http://www.theredplanet.org/apache/apache-modrewrite-all-html-indexphp#comments</comments>
		<pubDate>Fri, 06 Jul 2007 07:47:54 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.theredplanet.org/?p=8</guid>
		<description><![CDATA[Put the following line into a file called .htaccess.
RewriteRule ^.*\.html$ index.php [qsa]
All URLs requesting a resource with a .html extension will actually be a request for index.php.
e.g. http://domainname.tld/xyz.html?dog=cat becomes http://domainname.tld/index.php?dog=cat 
I believe the [qsa] arguments stand for &#8220;query string append&#8221; which means that any GET parameters in the original request will also be appended to the [...]]]></description>
			<content:encoded><![CDATA[<p>Put the following line into a file called .htaccess.</p>
<p>RewriteRule ^.*\.html$ index.php [qsa]</p>
<p>All URLs requesting a resource with a .html extension will actually be a request for index.php.</p>
<p>e.g. <a href="http://domainname.tld/xyz.html?dog=cat">http://domainname.tld/xyz.html?dog=cat</a> becomes <a href="http://domainname.tld/index.php?dog=cat">http://domainname.tld/index.php?dog=cat</a> </p>
<p>I believe the [qsa] arguments stand for &#8220;query string append&#8221; which means that any GET parameters in the original request will also be appended to the new rewritten request. </p>
<p>If you are using PHP, you can use the $_SERVER superglobal to find out the orginal page being requested.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.theredplanet.org/apache/apache-modrewrite-all-html-indexphp/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
