I'm not sure if I've posted this in the correct place, but here goes...
I'm trying to apply a series of 301 redirects from a clients current site to the new cmsms site which uses pretty urls.
Normal redirects work fine i.e
Code: Select all
RewriteRule ^page\.php$ http://www.website.com/page.html [R=301,L]
i.e page.php?id=2 to page.html
I have tried:
Code: Select all
RewriteCond %{QUERY_STRING} id=([0-9]+)
RewriteRule ^vpage.php$ %page.html? [R=302,L]
Code: Select all
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)$ index.php?page=$1 [QSA]