How to redirect nonexistent pages to your home page?

observer

Power Member
Apr 7, 2010
731
22
Hi guys, i run Wordpress autoblog and changed format of permalinks, which effected all indexed pages as well...
How to redirect nonexistent pages to your home page?
 
HTML:
Use your htaccess to redirect
ErrorDocument 404 your domain here

could you please explain how to do it? (sorry, not a coder).
 
Htaccess is akward for someone with no experience. Possibilty of destroying SEO

There has to be a ton of plugins for WP for that. Search 404 and see what comes up
 
Yeah there is a bunch of wordpress addons.

Check this one out:

Code:
hxxp://wordpress. org/extend/plugins/redirection/
 
their are a lot of redirection plugins for wordpress but the best one is Elmos pointed to above and you may also want to install custom permalinks plugin ,so that you can further seo your category and tag urls.
 
This is how I set my .htaccess up:

Options +FollowSymLinks
RewriteEngine on

###### Product Tidy Up Jul 23 2010 ######
RewriteRule ^OLD-PAGE-HERE NEW-PAGE-HERE-INCLUDING-HTTP-AND-DOMAIN [R=301,L]

I use Google Webmaster tools to find old pages that are still linked from other sites and redirect them somewhere meaningful.
 
Sorry, I know that you asked about redirecting to home page, but that was a solution for more specific redirecting - ie to a page with a similar subject. A 404 is the way to go as a catch-all.
 
Back
Top
AdBlock Detected

We get it, advertisements are annoying!

Sure, ad-blocking software does a great job at blocking ads, but it also blocks useful features and essential functions on BlackHatWorld and other forums. These functions are unrelated to ads, such as internal links and images. For the best site experience please disable your AdBlocker.

I've Disabled AdBlock