Knowledge Base Article

How to redirect my error pages to an URL?

In case you don't want to use custom error pages and you prefer to redirect them to another website or to your home page, you can use the ErrorDocument directive to achieve this.

 

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

 

ErrorDocument 404 http://domainname.com



Rating

Please indicate if this article was helpful for you.

rating :  4.5 from 5
views :  1469
votes :  11

Related Articles

Views

Haven't found what you are looking for? Suggest an article HERE.

powered by

Valid XHTML 1.0 Strict Valid CSS!