Own error pages

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
Joseph777
Forum Members
Forum Members
Posts: 206
Joined: Wed Mar 16, 2011 9:13 am

Own error pages

Post by Joseph777 »

Hello,

How do I do own error pages in CMSMS , because when i put the code below in htacess in the root so it does not work.

Code: Select all

ErrorDocument 400 /errors/badrequest.html
ErrorDocument 401 /errors/authreqd.html
ErrorDocument 403 /errors/forbid.html
ErrorDocument 404 /errors/notfound.html
ErrorDocument 500 /errors/serverr.html
SimonJ

Re: Own error pages

Post by SimonJ »

I use an actual error page and point it to the CMS error page.

So I have 404.shtml in the root directory

Code: Select all

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN""http://www.w3.org/TR/html4/loose.dtd">
<__html>
<head>
<title>
Tux</title>
<meta name="revisit" content="2 days">
<meta name="Robot" content="allow">
</head>
</__body>
<__script__ type="text/javascript" language="javascript">
window.location="index.php?page=error404";
</__script>
Click <a href="index.php?page=error404">here</a>
to enter site<br>
<__body>
</__html><!--

-->
Then I create a 404 error page in CMSMS to display the page I want.

This works but I am not sure if it is the right way.
Post Reply

Return to “CMSMS Core”