Dysan Posted March 28, 2008 Share Posted March 28, 2008 Hi, Using PHP, is it possible to create a custom 404 error page? Link to comment https://forums.phpfreaks.com/topic/98343-custom-404-page/ Share on other sites More sharing options...
Demonic Posted March 28, 2008 Share Posted March 28, 2008 just create a "404.shtml" file and upload it to your server . Must be on main directory. I'm pretty sure. Link to comment https://forums.phpfreaks.com/topic/98343-custom-404-page/#findComment-503248 Share on other sites More sharing options...
Dysan Posted March 28, 2008 Author Share Posted March 28, 2008 It hasn't worked! Don't I need to declare it somewhere? Link to comment https://forums.phpfreaks.com/topic/98343-custom-404-page/#findComment-503268 Share on other sites More sharing options...
BlueSkyIS Posted March 28, 2008 Share Posted March 28, 2008 in your .htaccess file: ErrorDocument 404 /404.html Link to comment https://forums.phpfreaks.com/topic/98343-custom-404-page/#findComment-503270 Share on other sites More sharing options...
discomatt Posted March 28, 2008 Share Posted March 28, 2008 More in depth http://www.yourhtmlsource.com/sitemanagement/custom404error.html Link to comment https://forums.phpfreaks.com/topic/98343-custom-404-page/#findComment-503272 Share on other sites More sharing options...
Demonic Posted March 28, 2008 Share Posted March 28, 2008 If you have "cpanel" it should work for you. Link to comment https://forums.phpfreaks.com/topic/98343-custom-404-page/#findComment-503279 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.