If I use
<Files index.php>
AuthType Basic
AuthName "Restricted Area"
AuthUserFile /home/cmslite/.htpasswd
Require valid-user
</Files>
Then when I go to my site admin.sitename.com
I get an error
But if I go to admin.sitename.com/index.php
I get the password prompt
So After searching the internet I found no answers then I tried
<Files ''>
AuthType Basic
AuthName "Restricted Area"
AuthUserFile /home/cmslite/.htpasswd
Require valid-user
</Files>
Then when I go to my site admin.sitename.com I get the password prompt but if I go to admin.sitename.com/index.php I am able to see the page without having to enter password
How would I get the password prompt to show up for both
admin.sitename.com and admin.sitename.com/index.php ?
And is <Files ''> correct?