Cant edit error pages?

Status
Not open for further replies.

zapzack

New Member
Messages
606
Reaction score
19
Points
0
Make a ".htaccess" file without the quotes in your public_html folder and include the following..

Code:
ErrorDocument 404 /404.shtml
 

joshua filby

New Member
Messages
56
Reaction score
1
Points
0
Okay, so this method will work for all of the error pages, all I have to do is edit the number.

Eg.
ErrorDocument 403 /403.shtml

Edit rep+ =]
 
Last edited:

biscoolcool

New Member
Messages
53
Reaction score
0
Points
0
Okay, so this method will work for all of the error pages, all I have to do is edit the number.

Eg.
ErrorDocument 403 /403.shtml

Edit rep+ =]

Yes, just for your information the page doesn't have to be called "403.shtml".

You can call it "error403.shtml" so then you will just have to write "ErrorDocument 403 /error403.shtml".

Also when I tried to make my error pages they didn't work. So in the .htaccess file I had to write
"ErrorDocument 403 http://mywebsite.com/error403.shtml"

_________________________________________
Please donate some credits:wiggle:
 
Last edited:

misson

Community Paragon
Community Support
Messages
2,572
Reaction score
72
Points
48
Note that if you give a full URL, it will result in an external redirect. The URL of the error page will be visible in the visitor's browser and (more importantly) the HTTP status will be the status returned for the error page's URL, rather than the original URL. This means the status will be 200, unless you change it. The documentation for ErrorDocument explains why this is a problem for customizing the 401 error document.
 
Status
Not open for further replies.
Top