I want to redirect all attempts to pages not found (404) to go to the front page. How can I do that?

thanks.

Comments

zbricoleur’s picture

Go to admin/settings/error-reporting

webdev2’s picture

that worked - thanks.

Bobby1290’s picture

You can also use http://drupal.org/project/search404 to send them to a page similar to what they were looking for.

webdev2’s picture

thanks

Anandyrh’s picture

how to redirect to front page?

sravanglitter’s picture

I have configured in "admin/settings/error-reporting" Default 404 (not found) page: http://localhost/node to redirect all 404 pages to home page and it works well but the URL not redirecting to the home page.
if I typed some non-existing URL in the browser for example http://localhost/node/xyz its redirecting to the home page but the actual URL still shows the http://localhost/node/xyz in the home. What I need is just redirect the URL also to the home page and it should show the http://localhost after redirecting. Any help would be greatly helpful.

Thank you.

anandpathak’s picture

Same Problem ...

I have configured in "admin/settings/error-reporting" Default 404 (not found) page: http://alpha.newsx.com/node to redirect all 404 pages to home page and it works well but the URL not redirecting to the home page.
if I typed some non-existing URL in the browser for example http://alpha.newsx.com/ideos its redirecting to the home page but the actual URL still shows the http://localhost/ideos in the home. What I need is just redirect the URL also to the home page and it should show the http://alpha.newsx.com or http://alpha.newsx.com/node after redirecting. Any help would be greatly helpful.