Custom Error Pages for Drupal

Custom error pages are very easy to make and serve a big purpose.
When you make your own error pages, the menu links and blocks are added to the page to help your visitors find their way.  why should I care? Because the core error pages have no menus or directions for the visitors or users.
 

After you have a main page and a menu in place it is time to make your error pages.
Have a look at the ones I made for this site.

  • page-not-found ,, NOTE: this one shows a site search using the search404 module.
    To make this work, install the module and put 'search404' in the 404(not found) text box on the Error reporting page. The search 404 module is really cool.
  • access-denied ,, NOTE: this one is a page I made using create content > page

To  make a custom page-not-found or access-denied error page for your dupal site.

  • Create Content >> Page
  • Make a title and add what ever you want to the body of the page.
  • Goto--  Site Configuration >> Error reporting
  • In the 404 (not found) or 403 (access-denied) text box, enter the path for your new page.
  • save the changes

 While your there...... Choose 'write errors to log' , otherwize errors will show on the screen. Showing errors on the screen is good for trouble shooting, but bad for a live site.

 

This is great, Thanks!

I had to update this post because I forgot that I had installed the search404 module for the page not found..
Back to Top

 Back to Top