Question
-
Topic
-
301 redirect for dynamic php
LockedI hope someone with rewrite expertise can help me as I don’t know how to do this – I don’t want to lose my existing google index entries!
I have old gallery2 site with links that were `http://natureinfocus.com/galleries/fauna/insects/moths/adults/Luna_Moth_eye.jpg.html`
New link for zenphoto gallery should be `http://natureinfocus.com/galleries/fauna/insects/moths/adults/Luna-Moth-eye.jpg.php`
So I tried adding in root .htaccess file:
`
Redirect 301 /galleries/fauna/insects/moths/adults/Luna_Moth_eye.jpg.html http://natureinfocus.com/galleries/fauna/insects/moths/adults/Luna-Moth-eye.jpg.php
`
which does at least let Google redirect the link, but now the link displayed on the page is:I’m thinking I should be using Rewrite Rule, but I don’t have the knowledge on know how to write the rule – I’ve made some attempts but can’t get it to work.
I’m asuming I should put the .htaccess in the root and not the zenphoto directory?
Could someone please give me an example for this file? Then I think I can fix the oher links.
I’m really struggling with this!