Hi,

If I type a random goobledegook url instead of an existing url for my drupal site, I get the:

"The requested page could not be found. "
page

When I go to this page, my menu and sidebar disappears. That doesn't really matter, as long as the user is redirected to the homepage or similar

How do I customise this page and set it to redirect to the homepage.

I've been checking out the customerror module, but it's a bit confusing, because I get the impression that it allows me to set up pages for 403 / 404 (I'm assuming the above is a 404 page - excuse my ignorance if not) that don't appear in search and stuff because it isn't a real node. However, I'm getting a red box saying that drupal wants me to set some custom nodes for the 404 / 403 which I haven't yet done. I imagine it would be better if my error pages won't appear in search results.

So, any idea what I need to do here.

Thanks

Andy

Comments

Jeffsus’s picture

http://www.yourdomain.com/admin/settings/error-reporting

You can create the pages as regular nodes and specify them there.

UrbanFuturistic’s picture

Checklist is:
- Make sure the modules on.
- Go to Administer >> Site Configuration >> Custom Error
- If there are errors about not having error logging on or something, what it actually means is you need to follow the link(s) and set the paths to customerror/403 and customerror/404 respectively.

Then type stuff in. My 404 just saysthis for now:

Title: 404 Error: Page Not Found

Description:

<p>Sorry, but the page you have requested was not found.</p>
<p>If you followed a link from another site or typed it in you may need to start at the front page of the site.</p>
<p>If you followed a link from within the site the site administrator has already been informed.</p>

As for the sidebar, http://drupal.org/project/blocks404 restores them if you must. However, if they're not absolutely critical to the look it might be better to work some styling around the no-sidebars class and stick a link to the frontpage on the error for the painful reason that stoopid searchbots, typos in links on other sites and just gaining any popularity can cause a lot of 404s.