Forum Moderators: phranque
http://www.example.com/reviews/index.php%3Faction=fullreview&id=148
Insead of:
http://www.example.com/reviews/index.php?action=fullreview&id=148
Right now we were able to tell the server to parse http://www.example.com/reviews/148.html
AS
http://www.example.com/reviews/index.php?action=fullreview&id=148
What were having a hardtime working out is to tell the server to parse/redirect
http://www.example.com/reviews/index.php%3Faction=fullreview&id=148
Into
http://www.example.com/reviews/148.html
Our current .htaccess file looks like this,
RewriteEngine on
RewriteBase /reviews
RewriteRule ^(.*)\.html$ index.php?action=fullreview&id=$1
Does anyone know how to tell it what we want? It is only google were concerned with.
Many thanks in advance.
Chris
Someone will correct me if I'm wrong, but I believe if you change your .htaccess to read:
RewriteEngine on
RewriteBase /reviews
RewriteRule ^(.*)\.html$ index.php?action=fullreview&id=$1 [L]
RewriteRule ^(.*)action=(a-z+)&id=(0-9+)$ index.php?action=$1&id=$2 [L]
it should match all of the following:
[example.com...]
[example.com...]
[example.com...]
[example.com...]
Anymore ideas anyone??
[edited by: DaveAtIFG at 8:01 pm (utc) on July 4, 2002]