<?xml version="1.0" encoding="UTF-8"?>
<posts to="2010-01-25T23:06:46+00:00" from="2010-01-25T23:06:46+00:00"><post><id>44</id><rid>44</rid><title>A simple way to make pretty urls </title><section>Code Tutorial</section><author><username>thebluerhino.myopenid.com</username><name>Andrew Milsted</name></author><content><![CDATA[If you are like me, you dislike the .php extension for web pages that display content, eg /contactus.php . To me this is a web page that is displaying HTML, so lets give it an .html suffix. but the easist way to implements templates is to use html.

To achieve this easily just create a .htaccess file to redirect .html's to .php.
[code=.htaccess]
RewriteEngine On
RewriteRule (.*).html $1.php [QSA]
[/code](The QSA just forwards all variables to the .php script)
[b]Requirements:[/b] are apache and mod_rewrite
[b]More Info:[/b] http://www.kuro5hin.org/story/2003/7/31/2335/08552]]></content><html><![CDATA[If you are like me, you dislike the .php extension for web pages that display content, eg /contactus.php . To me this is a web page that is displaying HTML, so lets give it an .html suffix. but the easist way to implements templates is to use html.<br style="clear:left;"/><br style="clear:left;"/>To achieve this easily just create a .htaccess file to redirect .html's to .php.<br style="clear:left;"/><pre style="color: #000066; border: 1px solid #d0d0d0; background-color: #f0f0f0; padding:5px;"><div style="font-family: Verdana, Arial, sans-serif; color: #808080; font-size: 70%; font-weight: bold; border-bottom: 1px solid #d0d0d0; padding: 0px;">.htaccess code:</div>&nbsp;<br style="clear:left;"/>RewriteEngine On<br style="clear:left;"/>RewriteRule (.*).html $1.php [QSA]<br style="clear:left;"/>&nbsp;</pre>(The QSA just forwards all variables to the .php script)<br style="clear:left;"/><b>Requirements:</b> are apache and mod_rewrite<br style="clear:left;"/><b>More Info:</b> <a href="http://www.kuro5hin.org/story/2003/7/31/2335/08552">http://www.kuro5hin.org/story/2003/7/31/2335/08552</a><div class="postTools"></div>

]]></html><datestamp>2010-01-25T23:06:46+00:00</datestamp><timestamp>2010-01-25T23:06:46+00:00</timestamp><blog>8</blog><key>91af9356c2ee83fbdc317914463d2931</key><links><uri>http://blogs.bluerhinos.co.uk/uri/d</uri><permalink>http://blogs.bluerhinos.co.uk/thinkblue/44/A_simple_way_to_make_pretty_urls_.html</permalink></links><formats><format type="text/html">http://blogs.bluerhinos.co.uk/thinkblue/44/A_simple_way_to_make_pretty_urls_.html</format><format type="text/xml">http://blogs.bluerhinos.co.uk/thinkblue/44/A_simple_way_to_make_pretty_urls_.xml</format><format type="image/png">http://blogs.bluerhinos.co.uk/thinkblue/44/A_simple_way_to_make_pretty_urls_.png</format></formats><revisions><revision current="true">http://blogs.bluerhinos.co.uk/thinkblue/44/A_simple_way_to_make_pretty_urls_.xml?revision=44</revision></revisions><comments/></post></posts>

