How do I redirect any 404 page-not-found errors to my site map page?

Avatar
  • Answered
How do I redirect any 404 page-not-found errors to my site map page?
Avatar
Arn
Hello Custo150, Cpanel has a way for you create custom 404 pages, but you would need to add code on the 404 page in order to provide a link to another page. Automatically re-directing everytime there is a 404 can also get you penalized by search engines, so it's not always recommended. Here's a suggestion for making your 404 pages jump after a period of time. You would need to paste this code in your custom 404 error page:
<meta http-equiv="Refresh" content = "10; URL=http://www.domain_name.com/sitemap.html">
This will cause the page to refresh in 10 seconds and then automatically jump to the page that you indicate. Here's Google Webmaster Tools take on the issue of using 404 errors: 404(Not Found - About Not Found Errors. If you have any further questions, please contact technical support available 24 hours a day / 7 days a week. Arnel C. InMotion Hosting Community Support Team
Avatar
Arn
Hello Custo150, You can create a custom 404 error page and then embed code to redirect to another page . We have an article that you can use called creating a custom 404 error page. The 404 error is a standard error message but you can direct a customer to a page by adding the code in your .htaccess file like this: ErrorDocument 404 index.html This will show the index page when the 404 error shows. For more information on editing your .htaccess file check out Setting a 404 error page via .htaccess. If you have any further questions, please contact technical support available 24 hours a day / 7 days a week. Arnel C. InMotion Hosting Community Support Team