View Single Post
Old 03-11-2013, 08:50 PM  
Lace
Too lazy to set a custom title
 
Lace's Avatar
 
Industry Role:
Join Date: Mar 2004
Posts: 16,116
Htaccess + htpasswd question

Need to use htaccess and htpasswd to protect all pages besides index.html along with all images used outside of the index.

Here's what I have so far, but it's pw protecting the index.html as well.

Code:
AuthName "Site Name" 
AuthType Basic 
AuthUserFile /path_to_/.htpasswd
Require valid-user

<Files "*">
Require valid-user
</Files>

<FilesMatch "(index\.html|logo\.png)$">
Allow from all
Satisfy any
</FilesMatch>
__________________
Your Paysite Partner
Strength In Numbers!
StickyDollars | RadicalCash | KennysPennies | HomegrownCash
Lace is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote