Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Replace 404 error page with custom 404 page?

Posted on 2013-06-11
2
Medium Priority
?
676 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 1000 total points
ID: 39237809
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 1000 total points
ID: 39237869
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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

FAQ pages provide a simple way for you to supply and for customers to find answers to the most common questions about your company. Here are six reasons why your company website should have a FAQ page
Dramatic changes are revolutionizing how we build and use technology. Every company is automating, digitizing, and modernizing operations. We need a better, more connected way to work together as teams so we can harness the insights from our system…
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 learn how to look for a specific file type in a local or remote server directory using PHP.
Suggested Courses

885 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