Solved

Replace 404 error page with custom 404 page?

Posted on 2013-06-11
2
605 Views
Last Modified: 2013-06-26
How do I replace the generic browser's 404 page with my own custom page?

I intend using the org.' s logo with a link back to the home page on the custom 404.
0
Comment
Question by:sandshakimi
2 Comments
 
LVL 10

Accepted Solution

by:
Sam Simon Nasser earned 250 total points
Comment Utility
since the tag is drupal, so i guess your site is drupal :p

here it is https://drupal.org/node/15366

Drupal's page error messages are meant to be direct and to the point. If you want page error messages that are a little more user-friendly, Drupal allows you to customize them.

    Create two nodes, one for each kind of page error (403 and 404).
    Determine the ID number of the node you wish to redirect users to. One way to determine the node's ID number is to visit the node and look at the number after the last slash in your browser's address bar. This is your node's ID number.
    Now enter the paths to your nodes in the appropriate boxes on your error reporting settings page. For example, if the node ID number for 403 error codes is "83," you would type "node/83" into the "Default 403 (access denied) page" setting.
        Drupal 6 mysite.com/admin/settings/error-reporting
        Drupal 7 mysite.com/admin/config/system/site-information

Because you are creating nodes, they will show up in the tracker and popular content blocks and anywhere else real nodes would be display. If this isn't acceptable, there is a contributed module called Custom Error that avoids this problem.

Also consider the Drupal 7 contributed module, Redirect 403 to User Login. Which provides redirection to the login page and configurable 403 and 404 error messages.
0
 
LVL 7

Assisted Solution

by:dec0mpile
dec0mpile earned 250 total points
Comment Utility
If you have Drupal 7 you can do this right from the back-end.

Just go to: Admin > Configuration > Site Information
On the bottom you can put the path to the pages and save the configuration.
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
Author Note: Since this E-E article was originally written, years ago, formal testing has come into common use in the world of PHP.  PHPUnit (http://en.wikipedia.org/wiki/PHPUnit) and similar technologies have enjoyed wide adoption, making it possib…
This tutorial demonstrates how to identify and create boundary or building outlines in Google Maps. In this example, I outline the boundaries of an enclosed skatepark within a community park.  Login to your Google Account, then  Google for "Google M…
The viewer will get a basic understanding of what section 508 compliance can entail, learn about skip navigation links, alt text, transcripts, and font size controls.

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now