Forums / Setup & design / how to properly set up a 404 error page

how to properly set up a 404 error page

Author Message

Michael Kress

Sunday 18 March 2007 11:02:27 am

Hi, on http://ez.no/doc/ez_publish/technical_manual/3_8/reference/configuration_files/error_ini there's unfortunately not much content. I found out how to redirect to a 404 page, but I'd like somehow to hide the page from the rest of the world, i.e. put the visibility to invisble. But with that ez publish wants me to log in to view the 404 page.
What's the best recipe to create a 404 page?
TIA
Michael

Heath

Sunday 18 March 2007 11:17:09 am

Hello,

You could disable the display of errors to users on your production installation settings.

[SiteSettings]
# If defaultpage is used, the DefaultPage will be shown when an error occurred
# Default
## ErrorHandler=displayerror
ErrorHandler=defaultpage
DefaultPage=/content/view/full/2/

hth

Brookins Consulting | http://brookinsconsulting.com/
Certified | http://auth.ez.no/certification/verify/380350
Solutions | http://projects.ez.no/users/community/brookins_consulting
eZpedia community documentation project | http://ezpedia.org

kracker (the)

Monday 19 March 2007 7:07:43 am

Well I could not find any documentation on error.ini @ <i>http://ez.no/doc/ez_publish/technical_manual/3_8/reference/configuration_files/error_ini</i>

Still, please review your error.ini stock settings as there are a number of useful setting which you can use to more closely achieve the behavior your looking for .. <i>http://pubsvn.ez.no/nextgen/trunk/settings/error.ini</i>

<i>//kracker

Kottonmouth Kings-Joint Venture-07-Put It Down (Vaporized Remix feat. Cypress Hill)</i>

Member since: 2001.07.13 || http://ezpedia.se7enx.com/

Michael Kress

Monday 19 March 2007 9:35:13 am

whoops, that's right, I used the interface to edit the ini file. Looking closely at the file shows me that there's lot's of comments in the file itself.
Thanks
Michael

Michael Kress

Saturday 31 March 2007 5:43:56 pm

Hi, I've got an error page now. It's working perfectly, but how can I prevent the search module from displaying results from my page named /error_404 ? Is there any black list that tells the search module what files not to treat?

I can prevent being searched by putting the page on "Hidden" but then I can't display the page for anonymous users.

Thanks
Michael