<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: mod_rewrite code for htaccess in Archive</title>
    <link>https://business.forums.bt.com/t5/Archive/mod-rewrite-code-for-htaccess/m-p/13431#M11979</link>
    <description>&lt;P&gt;OK after reading and learning more I figured it out &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;now how to close this post? LOL&lt;/P&gt;</description>
    <pubDate>Wed, 28 Apr 2010 13:47:43 GMT</pubDate>
    <dc:creator>taniwha</dc:creator>
    <dc:date>2010-04-28T13:47:43Z</dc:date>
    <item>
      <title>mod_rewrite code for htaccess</title>
      <link>https://business.forums.bt.com/t5/Archive/mod-rewrite-code-for-htaccess/m-p/13424#M11978</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;Im trying to get mod_rewrite to work?&lt;/P&gt;&lt;P&gt;Ive set up both htaccess and a test php file. The result is saying mod_rewrite is not enabled. If so, is it possible to have it activated?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Im running a simple .htaccess code&lt;/P&gt;&lt;P&gt;Options +FollowSymLinks&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;RewriteEngine On&lt;BR /&gt;RewriteBase /&lt;BR /&gt;&lt;BR /&gt;RewriteRule ^link([^/]*).html$ rewrite.php?link=$1 [L]&lt;/P&gt;&lt;P&gt;&amp;nbsp;and testing with rewrite.php&lt;/P&gt;&lt;P&gt;-&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;h2 align=center&amp;gt;&lt;BR /&gt;&amp;lt;?php&lt;BR /&gt;// mod_rewrite Test Page&lt;BR /&gt;// Copyright 2006 Webune.com&lt;BR /&gt;if($_GET['link']==1){echo"You are not using mod_rewrite";}&lt;BR /&gt;elseif($_GET['link']==2){echo"Congratulations!! You are using Apache mod_rewrite";}&lt;BR /&gt;else{echo"Linux Apache mod_rewrte Test Tutorial";}&lt;BR /&gt;?&amp;gt;&lt;BR /&gt;&amp;lt;/h2&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&amp;lt;hr&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&amp;lt;head&amp;gt;&lt;BR /&gt;&amp;lt;title&amp;gt;How To Test mod_rewrite in Apache Linux Server&amp;lt;/title&amp;gt;&lt;BR /&gt;&amp;lt;/head&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&amp;lt;body&amp;gt;&lt;BR /&gt;&amp;lt;p align="center"&amp;gt;by &amp;lt;a href="&lt;A rel="nofollow" target="_blank" href="http://www.webune.com"&gt;http://www.webune.com&lt;/A&gt;"&amp;gt;Webune&amp;lt;/a&amp;gt;&amp;lt;/p&amp;gt;&lt;BR /&gt;&amp;lt;p&amp;gt;&amp;lt;a href="rewrite.php?link=1"&amp;gt;LINK1&amp;lt;/a&amp;gt; = rewrite.php?link=1&amp;lt;/p&amp;gt;&lt;BR /&gt;&amp;lt;p&amp;gt;&amp;lt;a href="link2.html"&amp;gt;LINK2&amp;lt;/a&amp;gt; = link2.html&amp;lt;/p&amp;gt;&lt;BR /&gt;&amp;lt;p&amp;gt;How this works: both links are for this same page, except they both are different. link one is without the mod_rewrite and link2 is using mod_rewrite. Link1 show the php file, with with mod_rewrite we are mascarading the php file into a html file. you can use whatever type of extension you want, you can change it to .htm or .shtml etc... all you have to do is to make sure you also chang it in the .htaccess file&amp;lt;/p&amp;gt;&lt;BR /&gt;&amp;lt;p&amp;gt;&amp;amp;lt;&amp;amp;lt; &amp;lt;a href="&lt;A rel="nofollow" target="_blank" href="http://www.webune.com/forums/viewtopic-p-62.html"&gt;http://www.webune.com/forums/viewtopic-p-62.html&lt;/A&gt;"&amp;gt;Go back to webune forums.&amp;lt;/a&amp;gt;&amp;lt;/p&amp;gt;&lt;BR /&gt;&amp;lt;/body&amp;gt;&lt;BR /&gt;&amp;lt;/html&amp;gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Apr 2010 10:12:24 GMT</pubDate>
      <guid>https://business.forums.bt.com/t5/Archive/mod-rewrite-code-for-htaccess/m-p/13424#M11978</guid>
      <dc:creator>taniwha</dc:creator>
      <dc:date>2010-04-28T10:12:24Z</dc:date>
    </item>
    <item>
      <title>Re: mod_rewrite code for htaccess</title>
      <link>https://business.forums.bt.com/t5/Archive/mod-rewrite-code-for-htaccess/m-p/13431#M11979</link>
      <description>&lt;P&gt;OK after reading and learning more I figured it out &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;now how to close this post? LOL&lt;/P&gt;</description>
      <pubDate>Wed, 28 Apr 2010 13:47:43 GMT</pubDate>
      <guid>https://business.forums.bt.com/t5/Archive/mod-rewrite-code-for-htaccess/m-p/13431#M11979</guid>
      <dc:creator>taniwha</dc:creator>
      <dc:date>2010-04-28T13:47:43Z</dc:date>
    </item>
  </channel>
</rss>

