Apache: how to redirect all pages "404 not found" to the homepage?
Let's say my website is www.domain.com how do I make it so whenever a 404 not found error page comes up to make it redirect to the homepage automatically? Do I do this in the httpd.conf file or .htaccess file of root server? What is the exact line I need to type?
Thanks. |
|
In the httpd.conf file, you should see an entry like:
ErrorDocument 404 /missing.html Update the document (missing.html) on the entry to point at any document you want. |
All times are GMT -5. The time now is 02:21 PM. |