How to redirect old links to homepage
-
Hi, i bought a domain, and now i created a wordpress site on it. Previously on that domain also there was wordpress installed. This domain had some good backlinks for ex:
https://www.mysite.com/index.php?nav=calendar&data=2011-03-27
https://www.mysite.com//?nav=calendar&reng=10321
https://www.mysite.com//index.php?nav=calendar&data=2011-04-07I need to redirect all these links to my new site homepage. How i could do that?
I have added command “ErrorDocument 404 /index.php” to htaccess and it works, but as i understand it’s not good for SEO and google may index every link as different site.
Later i tried to write like this to htaccess:
Redirect 301 /index.php?nav=calendar&data=2011-03-27 https://www.mysite.com
Redirect 301 //?nav=calendar&reng=10321 https://www.mysite.com
Redirect 301 /index.php?nav=calendar&data=2011-04-07 https://www.mysite.com
After that my site is not working at all. Why is it happening? Thank you for your answers.
- The topic ‘How to redirect old links to homepage’ is closed to new replies.