Page 1 of 1

Own error pages

Posted: Sun May 27, 2012 7:50 am
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

Re: Own error pages

Posted: Tue May 29, 2012 8:03 am
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.