Jump to content

Archived

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

shehroz

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

Recommended Posts

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?

Share this post


Link to post
Share on other sites
[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

Share this post


Link to post
Share on other sites
[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.

Share this post


Link to post
Share on other sites

×

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.