Jump to content

how to change error documents like 404,403,500...


shehroz

Recommended Posts

[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]
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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.