customize htaccess with WordPress
-
hello,
I would like to prevent anyone to get to my first page without loging in. So, I altered the default .htaccess file (the one provided when installing WordPress), to add the password location (and maintaining the code for WordPress), as shown :
AuthName “Under construction”
AuthUserFile /www/password/password.txt
AuthType basic
Require valid-user
Order Deny,Allow
Deny from all
Allow from w3.org googlebot.com google.com google-analytics.com
Satisfy Any# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule># END WordPress
When running the page I get the error “Internal server error”.
Could you please let me know if the file is correct ?
Thanks for your help.Isa74
The topic ‘customize htaccess with WordPress’ is closed to new replies.