<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DZone Snippets: rewrite code</title>
    <link>http://snippets.dzone.com/posts</link>
    <pubDate>Fri, 25 Jul 2008 18:48:51 GMT</pubDate>
    <description>DZone Snippets: rewrite code</description>
    <item>
      <title>replace file extension with apache rewrite</title>
      <link>http://snippets.dzone.com/posts/show/2604</link>
      <description>// in this example *.html is replaced by *.php&lt;br /&gt;// its a redirect [R] and it is is permanent (code is 301)&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;RewriteEngine On&lt;br /&gt;RewriteBase   /the_directory&lt;br /&gt;&lt;br /&gt;RewriteRule  ^(.*).html$ $1.php [R=301]&lt;br /&gt;&lt;/code&gt;</description>
      <pubDate>Sat, 16 Sep 2006 16:24:21 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/2604</guid>
      <author>ovhaag (Oliver Haag)</author>
    </item>
    <item>
      <title>rewrite rules</title>
      <link>http://snippets.dzone.com/posts/show/2543</link>
      <description>// if cms has cryptic urls&lt;br /&gt;// in apache url-rewriting with .htaccess can help&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;RewriteRule cms/fest$ cms/index.php?option=content&amp;task=view&amp;id=176&amp;Itemid=202 [NC]&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;// [NC] = not case-sensitive</description>
      <pubDate>Tue, 05 Sep 2006 04:31:50 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/2543</guid>
      <author>ovhaag (Oliver Haag)</author>
    </item>
  </channel>
</rss>
