shehroz Posted August 10, 2006 Share Posted August 10, 2006 how the error files can be chaged.you will see in 404 not found:the url you requested can not be found. i want to use my own words , how i can do it? Quote Link to comment https://forums.phpfreaks.com/topic/17175-how-to-change-error-documents-like-404403500/ Share on other sites More sharing options...
oldmanice Posted August 10, 2006 Share Posted August 10, 2006 No that cant be changed Quote Link to comment https://forums.phpfreaks.com/topic/17175-how-to-change-error-documents-like-404403500/#findComment-72747 Share on other sites More sharing options...
AndyB Posted August 10, 2006 Share Posted August 10, 2006 [quote author=oldmanice link=topic=103770.msg413500#msg413500 date=1155248971]No that cant be changed[/quote]False. Of course it can be changed. Create whatever you want to use as an error page, e.g. 404.html and then create a .htaccess file - placed in the root folder - containing this:ErrorDocument 404 http://www.yoursitename.com/404.html Quote Link to comment https://forums.phpfreaks.com/topic/17175-how-to-change-error-documents-like-404403500/#findComment-72753 Share on other sites More sharing options...
youcantoo Posted August 11, 2006 Share Posted August 11, 2006 [quote]False. Of course it can be changed. Create whatever you want to use as an error page, e.g. 404.html and then create a .htaccess file - placed in the root folder - containing this:ErrorDocument 404 http://www.yoursitename.com/404.html[/quote]Remember for this to work (.htaccess) they must have the AllowOverride set to "on"also the the path for the new error document does not have to be an absolute path, it can be a realitive path as well. Quote Link to comment https://forums.phpfreaks.com/topic/17175-how-to-change-error-documents-like-404403500/#findComment-73365 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.