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?

agentorange
 
agentorange replied on at Permalink Reply
agentorange
Can anyone assist with the above?
jasteele12 replied on at Permalink Reply
jasteele12
What you are probably looking for are 301 Permanent redirects. Above your Rewrites:
Redirect  /index.php?id=63  http://yoursite.com/some-page
Redirect  /index.php?id=64  http://yoursite.com/another-page
...
Hope that helps,

John