301 Redirect on Dynamic Pages
Hi All,
I've just made a new site live and am having problems with 301 redirects on certain dynamic pages. I'm trying to set up these redirects from the old pages to the new pages. Some are working and some aren't.
Here is an example of one that is working -
RewriteCond %{QUERY_STRING} ^id=135$ [NC]
RewriteRule ^index\.php$ http://www.mydomain.co.uk/newpage.html? [L,R=301]
But when i apply this to some old .aspx that Google have indexed it doesn't work ( i just get a 404 ). Example -
RewriteCond %{QUERY_STRING} ^id=22$ [NC]
RewriteRule ^oldfolder/old\_page\.aspx$ http://www.mydomain.co.uk/new-page.html? [L,R=301]
Anyone got any ideas?