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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.