Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

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
add comment

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.

share|improve this answer
    
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
add comment

Your Answer

 
discard

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.