View Full Version : Need some help...
TheMrHappy
11-12-2002, 07:21 PM
My host told me that my .htacces file has an error.
I was told that I should "Never use a full URL for a 401 error rule"
This's what I've used:
ErrorDocument 404 http://mydomain.com/
ErrorDocument 401 http://mydomain..com/
ErrorDocument 403 http://mydomain..com/
ErrorDocument 500 http://mydomain..com/
This's .htacces file after host edit:
ErrorDocument 404 http://mydomain..com/
##ErrorDocument 401 http://mydomain..com/
#Never use a full URL for a 401 error rule!!
ErrorDocument 403 http://mydomain..com/
ErrorDocument 500 http://mydomain..com/
Any ideas what .htacces file should I use?
HooHost.Com
11-12-2002, 08:29 PM
I would say your host should have helped you.
Here it is:
ErrorDocument 404/ http://
ErrorDocument 400/ http://
ErrorDocument 400/ http://
ErrorDocument 401/ http://
ErrorDocument 403/ http://
ErrorDocument 410/ http://
ErrorDocument 500/ http://
You missed the '/'
Don't put www. if the link is within you site, so redirection goes faster. ;)
uproared
11-13-2002, 12:03 AM
What is a 401 error? And why can't you use a full url?
Cheers
Uproared
HooHost.Com
11-13-2002, 02:32 AM
You can use a full URL, as you see:
ErrorDocument 404/ http://http://www.anysite.com
ErrorDocument 404/ http://http://yoursite.com
Never change the spacing.
Sureal
11-13-2002, 09:28 PM
I have never ever seen it like this...
ErrorDocument 404/ http://
ErrorDocument 400/ http://
ErrorDocument 400/ http://
ErrorDocument 401/ http://
ErrorDocument 403/ http://
ErrorDocument 410/ http://
ErrorDocument 500/ http://
I have always used
ErrorDocument 404 http://
ErrorDocument 400 http://
ErrorDocument 400 http://
ErrorDocument 401 http://
ErrorDocument 403 http://
ErrorDocument 410 http://
ErrorDocument 500 http://
ausboy
11-13-2002, 09:42 PM
I use same as Sureal:
ErrorDocument 404 http://www.domain.com
I assume the double http:// you have in your URLs is an unintentional balls up by you hoohost?
HooHost.Com
11-13-2002, 09:53 PM
It ought to be as I got it. Do a search for .htaccess on the board and you will find out.
You may get errors if you do it like you do - but just try it and see then.
Any help, just mail Hoo dude!:D
A 401 is onother kind of server error, (unauthorized access) they come at different arias of the server. The 404 (dead page error) is the most common.
You redirect the unauthorized access as well as any - hackers for example - redirect to login page or surfers to the sponsor page!
What you think is a full URL? You can put a full URL, as you see.
vBulletin® v3.7.3, Copyright ©2000-2012, Jelsoft Enterprises Ltd.