Forum Moderators: phranque
I want it rewritten to (301): http://www.example.com/z_index-scarves.htm.
Here is what I have in my .htaccess:
Options +FollowSymLinks
RewriteEngine on
RewriteRule z_index.php?view=(.*) z_index-view-$1\.htm [R=301, I]
RewriteRule z_index-view-(.*)\.htm$ z_index.php?view=$1 [I,O,L]
I get a 500 server error when I try this configuration. What am I donig wrong?
Thanks
[edited by: jdMorgan at 11:07 pm (utc) on July 25, 2006]
[edit reason]
[1][edit reason] Example.com [/edit] [/edit][/1]
RewriteRule ^z_index.php\?view=(.*)$ http\://www\.example\.com/z_index-view-$1\.htm [R=301]
RewriteRule z_index-view-(.*)\.htm$ z_index.php?view=$1
But the 301 redirect doesn't happen.
[edited by: jdMorgan at 11:07 pm (utc) on July 25, 2006]
[edit reason]
[1][edit reason] Example.com [/edit] [/edit][/1]
Options +FollowSymLinks
RewriteEngine on
RewriteRule ^z_index.php?view=(.*)$ [www\.example\.com...] [R=301]
RewriteRule z_index-view-(.*)\.htm$ z_index.php?view=$1
I even tried hardcoding the parameters and it didn't work:
RewriteRule ^z_index.php\?view=scarves http\://www\.example\.com/z_index-view-scarves.htm [R=301]
Any help would be much appreciated.
[edited by: jdMorgan at 11:10 pm (utc) on July 25, 2006]
[edit reason]
[1][edit reason] Example.com [/edit] [/edit][/1]
Also, this one [webmasterworld.com] in our library may be of help.
Jim
[edited by: jdMorgan at 11:18 pm (utc) on July 25, 2006]