Web Hosting Talk







View Full Version : Cpanel Error pages


Christoph
07-30-2001, 05:17 PM
Any cpanel specialists here"

How can I modify the error pages thru the cpanel software? I am not really sure if I understand what I need to do. What I want is as an example for 404 error to redirect to my main index page.

I could not figure out which tag to use and what to put into the tag. Where are the pages saved ? Can they be edited manually?

Thanks!

C.

ckizer
07-30-2001, 06:15 PM
Chris, i've never had any luck with the cpanel editor actually working for any of my customers.

I recommend you just create the pages with your HTML editor, all you need to do is name them after the errors and have the extension .shtml on the end, for example the 404 error you would need to make a 404.shtml and put it in your root "public_html" folder.

Christoph
07-31-2001, 04:55 PM
Thanks!

I'll give that a try!

carpman
07-31-2001, 05:34 PM
i have used cpanel to create error pages the code for 404 is below, i have also created standard ones and put them in the cpanel3_skel dir, when i create a new user they are installed automatically.


---------------------------------------------

<div align="center">
<h1><b>Wrong Page</b></h1>
<p> </p>
<p><b>Sorry wrong page.</b></p>
<p><b>Your IP address ( <!--#echo var="REMOTE_ADDR" --> ) has
bee logged.</p>
<p> </p>
<!--#echo var="HTTP_USER_AGENT" -->

<p> </p>
Code <!--#echo var="REDIRECT_STATUS" -->
</b>
<p><a href="http://www.your-domain.com">www.your-domain.com</a></p>
</div>

Christoph
08-01-2001, 05:01 PM
Thanks, everyone!

Got it to work!

C.