I'm not very knowledgeable about server scripting, however I've only just installed SSL certificate for the domain.
The main website (hosted by GoDaddy) is now working fine on SSL/TLS and I've modified the .htaccess file for the main site to GoDaddy's specification. All seems well.
I have a sub-directory on the website (linked from a menu item) which has a password challenge before allowing users to process the index.htm in that directory. The .htaccess file in the sub-directory contains the following script:-
AuthType Basic
AuthName "Area Restricted to Authorised Users Only"
AuthUserFile /home/{path to subdirectory}/.htpasswd
require valid-user
ErrorDocument 401 /errorfiles/401.html
ErrorDocument 403 /errorfiles/403.html
ErrorDocument 404 /errorfiles/404.html
ErrorDocument 500 /errorfiles/500.html
I now get error 401 (unauthorised) when attempting to link to the sub-directory. What am I doing wrong please? (Note: if I remove the .htaccess file then I can get straight in to the index.htm file with no challenge but still on SSL)
RewriteEngine On RewriteCond %{SERVER_PORT} 80 RewriteCond %{HTTP_HOST} ^(www\.)?roystonrotary\.com RewriteRule ^(.*)$ https://www.roystonrotary.com/$1 [R,L]