Dynamic URL redirects
Permalink
Hi recently made a client's site live. There previous site had urls likehttp://domainname.com/index.php?id=63...
I used a rewrite function in my htaccess file but it is not working. Everything gets redirect to the home page.
RewriteEngine on
RewriteCond %{QUERY_STRING} ^id=63$
RewriteRule ^/index.php$http://www.domainname.com/de/pagename?... [L,R=301]
I have pretty urls enabled as well. I removed pretty urls but it didn't seem to make a difference. How else can I go about tackling this?
I used a rewrite function in my htaccess file but it is not working. Everything gets redirect to the home page.
RewriteEngine on
RewriteCond %{QUERY_STRING} ^id=63$
RewriteRule ^/index.php$http://www.domainname.com/de/pagename?... [L,R=301]
I have pretty urls enabled as well. I removed pretty urls but it didn't seem to make a difference. How else can I go about tackling this?
Can anyone assist with the above?
What you are probably looking for are 301 Permanent redirects. Above your Rewrites:
Hope that helps,
John
Redirect /index.php?id=63 http://yoursite.com/some-page Redirect /index.php?id=64 http://yoursite.com/another-page ...
John