1

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?

3

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.

  • Is there a way to just redirect all 404 errors though? – h00j Apr 16 '12 at 11:08
  • 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)? – LazyOne Apr 16 '12 at 12:01
  • 2
    @HenryHoggard agree with LazyOne - design a 404 page which helps users - this isn't about search engines. – toomanyairmiles Apr 16 '12 at 12:27
  • Once i have designed a 404 page how do i assign it? – h00j Apr 16 '12 at 15:42
  • 1
    @HenryHoggard in your htaccess 'ErrorDocument 404 path/to/404.php' – toomanyairmiles Apr 16 '12 at 15:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.