… Because Broken Is Not An Option.
301 ReDirect For WordPress Back To Home Page Instead Of 404 Error Page.
If you delete posts in WordPress that were once indexed by Google or bookmarked by one of your visitors, if they re-visit the link they’ll get your 404 error page. The code below simply will re-direct them to your homepage. Just copy the code to a file and rename it to 404.php. In my WordPress installation, i just replaced the existing 404.php file in wp-content/themes/themename/ with the code below.
| Print article | This entry was posted by HowIFixedIt on July 22, 2010 at 9:17 am, and is filed under Internet, Technology. Follow any responses to this post through RSS 2.0. You can leave a response or trackback from your own site. |