Home
/
Website Help
/
Stats and Errors
/
How to redirect my error pages to an URL?

How to redirect my error pages to an URL?

If you do not want to use custom error pages and prefer to redirect them to another website or to your home page, use the ErrorDocument directive to achieve this.

For example, to redirect the 404 (File Not Found) errors to http://domainname.com, add this line to your .htaccess file:

ErrorDocument 404 http://domainname.com

To modify/create the .htaccess file use FTP, SSH or File Manager in Site Tools.

Share This Article