Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question

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.

share|improve this answer
Is there a way to just redirect all 404 errors though? – h00j Apr 16 '12 at 11:08
@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
@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
@HenryHoggard in your htaccess 'ErrorDocument 404 path/to/404.php' – toomanyairmiles Apr 16 '12 at 15:58

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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