custom error page
Posted: Sat Apr 29, 2006 3:06 pm
Hello,
I am having some trouble setting up a custom error page. My server runs Apache, and on all non-cmsms pages the error-handling works as ist should.
On my CMSMS installations, however, I experience a strange problem. I describe my setup first:
- fehler.html is set up as default error page in .httpdconfig
- I made a fehler.html in CMSMS which does not show in navigation
- I use mod_rewrite to turn CSMSMS page calls into friendly URLs (copied the .htaccess from the /doc directory
The problem:
Although wrong sub-directories get handled as intended (displaying /fehler.html), calls to non existing .html pages end in an "404 not found" from the server - just as if fehler.html would not exist.
My .htaccess file:
Any suggestions?
thx,
faglork
I am having some trouble setting up a custom error page. My server runs Apache, and on all non-cmsms pages the error-handling works as ist should.
On my CMSMS installations, however, I experience a strange problem. I describe my setup first:
- fehler.html is set up as default error page in .httpdconfig
- I made a fehler.html in CMSMS which does not show in navigation
- I use mod_rewrite to turn CSMSMS page calls into friendly URLs (copied the .htaccess from the /doc directory
The problem:
Although wrong sub-directories get handled as intended (displaying /fehler.html), calls to non existing .html pages end in an "404 not found" from the server - just as if fehler.html would not exist.
My .htaccess file:
Code: Select all
RewriteCond %{HTTP_HOST} ^domain\.de$
RewriteRule ^(.*)$ http://www.domain.de/$1 [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-f [NC]
RewriteRule ^(.+)\.html$ index.php?page=$1 [QSA]Any suggestions?
thx,
faglork