Page 1 of 1

how do I get custom error documents to work? [SOLVED]

Posted: Mon Aug 16, 2010 4:20 pm
by davids355
I have custom error documents set up in htaccess, using the following code:
ErrorDocument 404 /notfound.htm
ErrorDocument 403 /forbidden.htm
ErrorDocument 410 /gone.htm

I have these files set up as static files - not build in CMS - just because its the only way I new how to do it:)

If I go to say www.shareworld.co.uk/hthgh.html (which doesnt exist) it gets redirected fine. However, if I go to:
www.shareworld.co.uk/index.php/gtgtg/

The redirect does not work, it just brings up a standard not found error:

"Not Found
The requested URL was not found on this server."

I have looked in the faqs but cant really find a solution.

To give some more info, I am running the latest version of cmsms, I have pretty urls configured (internal), and I have extensionless urls (shareworld.co.uk/index.php/sub-page/article01/ etc).

Can anyone help??

Re: how do I get custom error documents to work?

Posted: Mon Sep 06, 2010 8:24 am
by davids355
Does anyone have any ideas on this one? Even point me in the right direction? I don't mind modifying the code a bit if I new where to start...

Its really annoying not being able to have custom error docs/....??

Re: how do I get custom error documents to work?

Posted: Mon Sep 06, 2010 8:50 am
by alby
davids355 wrote: Its really annoying not being able to have custom error docs/....??
Create a new page
In Content type select: Error page
Fill the Title and Content fields
Submit
Try

Alby

Re: how do I get custom error documents to work?

Posted: Mon Sep 06, 2010 9:21 am
by davids355
Its always SO easy!!! ... when you know how.

Thanks alot Alby:)