I use this .htaccess to protect my WP installation, but after deactivating "folder protection", the whole .htaccess disappears, not only protection lines.
Quote:
AuthType Basic
AuthName "Members Only"
AuthUserFile /var/www/clients/client1/web1/web/.htpasswd
require valid-user
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
|
Recent comments
2 days 21 hours ago
3 days 6 hours ago
3 days 9 hours ago
3 days 10 hours ago
3 days 12 hours ago
3 days 13 hours ago
3 days 15 hours ago
3 days 16 hours ago
4 days 8 hours ago
4 days 9 hours ago