Okay I'm simply just trying to make it so the when you log on to www.mysite.com. The first page you see is your "index.htm" file. I want to password protect that page and then when you put the username and password in it redirects you to "home2.htm"
Here's the code I have for the .htaccess file
AuthName "Restricted Area"
AuthType Basic
AuthUserFile /public_html/downloads/.htpasswd/.htpasswd
AuthGroupFile /dev/null
<Files home2.htm>
require valid-user
</Files>
I put that file into the "public_html" folder
Then I uploaded the .htpasswd file into a different directory called "downloads" inside the "public_html" folder. which I used a username and password generator for which looked something like this
kajuser1:.6Rpf5jCn6vR6
kajuser2:e0tmkhlP9Gwvs
kajuser3:XhFe0aClGwu32
When I go to the site nothing happens, no pop up box at all. Am I doing something wrong? Any help would be much appreciated
Here's the code I have for the .htaccess file
AuthName "Restricted Area"
AuthType Basic
AuthUserFile /public_html/downloads/.htpasswd/.htpasswd
AuthGroupFile /dev/null
<Files home2.htm>
require valid-user
</Files>
I put that file into the "public_html" folder
Then I uploaded the .htpasswd file into a different directory called "downloads" inside the "public_html" folder. which I used a username and password generator for which looked something like this
kajuser1:.6Rpf5jCn6vR6
kajuser2:e0tmkhlP9Gwvs
kajuser3:XhFe0aClGwu32
When I go to the site nothing happens, no pop up box at all. Am I doing something wrong? Any help would be much appreciated