• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Web site /Cpanel gurus! Please help

taltos1

Senior member
In cpanel I created a folder "files" and password protected it (using cpanel as well). I want only users with the password to be able to get the files in "files." When browsing to that location in the web browser (www.mysite.com/files) the popup comes up asking for the user and pass. Now if the user does not know the user/pass and hits "cancel" they get pushed to a plain white page that says "Authorization Required" and instead of that I would like user to get pushed to the homepage. Can anyone tell me how to do that? Can it be done via the .htaccess file?

Thanks a lot.
 
Try this in your .htaccess file.

ErrorDocument 401 /index.html

Replace index.html with whatever your home page file name is, if it is not in fact, named index.html.
 
Back
Top