...

View Full Version : Custom 404 Page



phantom007
03-15-2008, 08:24 PM
Hi,

I am running cPanel 11 with apache.

I want a custom 404 page in php format. Currently its set to 404.shtml by default, even if I change the file name from 404.shtml to 404.php (under cPanel's "Custom Error Pages"), it still redirects to 404.shtml. So I was wondering if there is an alternate trick to do this?


Please guide



Thanx

Apostropartheid
03-15-2008, 11:40 PM
Open up your .htaccess file (should be located in the public_html or www folder of your website.)
Find this line: ErrorDocument 404 /404.shtml or something similar
Edit it to: ErrorDocument 404 /404.php
Save the file.

phantom007
03-16-2008, 04:42 AM
That solved my problem.



Thanx

phantom007
03-22-2008, 07:58 AM
ok there is now a small glitch.

If I place www in the URL, it works fine on Firefox and Opera but does NOT work in IE. IE says the page does not exist.

http://www.resumehype.com/saurav


With IE I need to remove the www to view the page

http://resumehype.com/saurav



Any solution for this?


Thanx

_Aerospace_Eng_
03-22-2008, 08:50 AM
Do you need to use the full url? Why not just /saurav ?



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum