Posted by on January 22, 2016

We all know that HostGator has set custom 404 error page for all hosted websites, the visitor leaves your website and reaches to HostGator website. It is really very bad for your site, and SEO. Can we keep the visitor on our site even after 404 error comes?

The answer is Yes! How to create our own 404 error page, and disable Hostgator 404 error ads then?

First, create our own custom 404 page, say the file name is nofound.html, we can use dreamweaver or other txt editors to modify this html file, and put it under the root of your site.

Second, add the following line at your .htaccess file:
ErrorDocument 404 /notfound.html

Done!

How about Zen-Cart shop? We all know that Zen-Cart has already add a 404 error page for us: page_not_found.php, the file is just under the root of the shop. We can add either the line to .htaccess file:
ErrorDocument 404 /page_not_found.php
or
ErrorDocument 404 /index.php?main_page=page_not_found
Both method will work!

Posted in: Zen-Cart

Comments

Be the first to comment.

Leave a Reply