Page 1 of 1

custom error page

Posted: Sat Apr 29, 2006 3:06 pm
by faglork
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:

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

Re: custom error page

Posted: Sat May 06, 2006 2:55 pm
by Raven
You can set your own error page under Site Admin>Global Settings. You an have your own page with text here and have your own template. remember to cross on "Enable Custom 404 Message:"

My suggestion i simply to put up an own template with Meta tags redirecting to fehler.html.

Re: custom error page

Posted: Mon May 08, 2006 7:51 am
by faglork
Aaargh!

That comes from not reading the screen content completely. I apologize!

I did as you suggested and everything is fine.

Many thanks!

faglork