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
http://www.yourdomain.com/adm
http://www.yourdomain.com/admin/settings/error-reporting
You can create the pages as regular nodes and specify them there.
The errors are slightly misleading.
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:
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.