05-28-2012, 01:29 PM
Join Date: May 2012
|Hello and thank you for your reply.
Originally, when I assigned, via DA File Manager, Directory restriction the content of ".htaccess" file was:
Restriction was working properly but at logon if I was hitting Escape or not properly validating I was getting error code "401" but did not like the fact that was not customiezed. So I asked how to point to proper custom error code for 401.shtml 403.shtml 404.shtml 500.shtml files.
AuthName "Test Directory"
So, I was advised to add on the first line of ".htaccess" file the following:
This way, the directory password restricted area did not work anylonger and I was getting immediately this error 401 webpage.
ErrorDocument 401 http://surf.com/401.shtml
What I wish to do is being able to password protect a directory and custom make those error code webpages "xxx.shtml".
I wish to know how to do so, where to place those error shtml files and if is there anything else reccomeded in order to properly customize this ".htaccess" file
Lastly, if possible, can you please refer me to a correct documentation on the web, I do not know if it has to be LiteSpeed specific, so I can additionally read and learn?
Thank you so much for your help,