htaccess htpasswd appearing on all pages of the site?
-
I wanted to secure the wp-login.php file for my site, so I added an authorization section to my .htaccess file. Unfortunately, for some reason I’m getting a password prompt on every page of the site, instead of just wp-login.php. Could anyone help me out? I’m really not much experienced with htaccess, and I figured following the WordPress recommendation on this would work right off the bat, but it seems I might be missing something. Here’s what my file looks like:
<IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # Protect wp-login <Files wp-login.php> AuthName "Private Access" AuthType Basic AuthUserFile /home/passwords/.htpasswd require valid-user </Files>
Any help is much appreciated, thanks very much!
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘htaccess htpasswd appearing on all pages of the site?’ is closed to new replies.