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

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
davids355
Power Poster
Power Poster
Posts: 279
Joined: Fri Apr 04, 2008 10:08 am

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

Post 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??
Last edited by davids355 on Mon Sep 06, 2010 9:21 am, edited 1 time in total.
davids355
Power Poster
Power Poster
Posts: 279
Joined: Fri Apr 04, 2008 10:08 am

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

Post 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/....??
alby

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

Post 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
Last edited by alby on Mon Sep 06, 2010 8:52 am, edited 1 time in total.
davids355
Power Poster
Power Poster
Posts: 279
Joined: Fri Apr 04, 2008 10:08 am

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

Post by davids355 »

Its always SO easy!!! ... when you know how.

Thanks alot Alby:)
Post Reply

Return to “CMSMS Core”