I am curious what is the best way to add content or modify the "Page Not Found" pages, so as to offer something to the user even though the site page is not found. Any help appreciated. Thanks. -Ivan

Comments

zroger’s picture

on the administer->settings page, in the error handling section, you can specify a redirect path for page not found and also unauthorized access.

elfur’s picture

Hello Ivan,

take a look at the search 404 module, which is designed for that exact purpose, to look for related material and suggest that as an alternative to the original page, which incidentally, wasn't found.

see: http://drupal.org/node/26010

HTH
/elfur.is

Anonymous’s picture

There are several ways to act :

  • just create a standard 404 page
  • if you have just converted an old fashioned site to a drupal site, you could write a PHP code snippet in your 404 page which can translate the old URLs to new ones (like http://www.example.com/old/path/foo.html to http://www.example.com/new/path/foo), alerting the user that (s)he should updates his(her) bookmarks.
  • there are the following modules which can be useful :
    • Custom Error allows to create 404 and 403 pages without creating a node for each
    • Search 404 operates an automatic search
mudanoman’s picture

Thanks you guys :) I will look into the various solutions posted and report back. Have a nice weekend! Best, Ivan

rjmn14’s picture

thanks i had got the answer ...............