Forum Moderators: phranque
This mode rewrite utilizes OB and works fine with another site
However the root index has a PHP extension as index.php
To fully understand what I am trying to achieve please look at my previous post
My other post [webmasterworld.com]
Thank you
Add a RewriteCond so that index.html is only rewritten to index.php if index.html is requested in the /display_hp subdirectory:
RewriteEngine on
RewriteRule (index.php)-([^-]+)-([^-]+)\.html$ $1.html?$2=$3 [N,QSA]
RewriteCond %{REQUEST_URI} ^/display_hp/
RewriteRule index\.html$ index.php [L]
RewriteEngine on
RewriteRule (index.php)-([^-]+)-([^-]+)\.html$ $1.html?$2=$3 [N,QSA]
RewriteCond %{REQUEST_URI} !^index\.html$
RewriteRule index\.html$ index.php [L]