custom error page

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.
Locked
faglork

custom error page

Post 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
Raven

Re: custom error page

Post 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.
faglork

Re: custom error page

Post 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
Locked

Return to “CMSMS Core”