HostGator Page Not Found for Zen-Cart

We all know that HostGator has set a 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 the 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 to your .htaccess file:
ErrorDocument 404 /notfound.html

Done!

How about Zen-Cart shop? We all know that Zen-Cart has already added 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 the .htaccess file:
ErrorDocument 404 /page_not_found.php
or
ErrorDocument 404 /index.php?main_page=page_not_found
Both methods will work!