how do I get custom error documents to work? [SOLVED]
Posted: Mon Aug 16, 2010 4:20 pm
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??
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??