05-30-2012, 10:20 AM
Join Date: May 2012
I thank you for all the explanations.
Despite the answer kindly provided regarding the ErrorDocumet I find difficulties in properly understanding why the http:// does not work.
When I write in .htaccess the following line "ErrorDocument 401 http://surf.com/401.shtml" the system should redirect to that URL only if the error 401 orrurs.
In my case, when I type http://www.site.com/test and hit enter, the web browser points to this website, and it redirects immediately to the URL rather than asking me for username and password.
This is the exact part that I do not understand and wish to ask again for help.
If the ErrorDocument kicks in only when the error occurs it should not matter, regardless of the tecnicalities, but this is not the way the server behaves.
Why when I do not use a http:// I am able to get the username and password windows prompted and when instead I do use the http:// not?
This is what I wish to solve.
I tried to ask in IRC at Apache channel for support and they were able to note that the website is immediately redirecting to another url but they are unable to support me because I am not using Apache.
You use robots.txt and place it under DocRoot.