Hi i have recently moved my forum from Mybb to Vanilla, so the index pages such as showthread.php now do not exist. This is a big problem for SEO, what do I do to redirect this to the home page?
1 Answer
In your .htaccess file:-
redirect 301 /path/to/url http://www.domain.com/path/to/new/url
Note the first URL has no domain name, but the second one does.
-
-
4@Henry Hoggard You can -- using mod_rewrite, but what is the point? If I hit non-existing page I would like either to be redirected to a proper new location of the same page (as per @toomanyairmiles answer) or see an error page (preferably with some hints on what other pages may be interesting for me based on my URL). Why do I need to see your home page (or whatever) if I hit some random and invalid URL (e.g.
yoursite.com/bla-bla
)?– LazyOneCommented Apr 16, 2012 at 12:01 -
2@HenryHoggard agree with LazyOne - design a 404 page which helps users - this isn't about search engines. Commented Apr 16, 2012 at 12:27
-
-
1@HenryHoggard in your htaccess 'ErrorDocument 404 path/to/404.php' Commented Apr 16, 2012 at 15:58