Better WP Security prevents theme access to CSS file
-
Why the codes from Better WP Security in .htaccess file prevents the theme file access to css file in this folder /wp-admin/css/wp-admin.min.css?ver=3.6
I am using plugin Password Protected and it is using css file /wp-admin/css/wp-admin.min.css?ver=3.6 but Better WP Security cod ein .htaccess blocks accessing to this css file and so the theme from Password Protected not displaying correctly.
So int his code, how do I exclude the css file?
# BEGIN Better WP Security Options -Indexes <IfModule mod_rewrite.c> RewriteEngine On RewriteRule ^login/?$ /wp-login.php?vus65jti325i5wjg60nwg [R,L] RewriteCond %{HTTP_COOKIE} !^.*wordpress_logged_in_.*$ RewriteRule ^admin/?$ /wp-login.php?vus65jti325i5wjg60nwg&redirect_to=/wp-admin/ [R,L] RewriteRule ^admin/?$ /wp-admin/?vus65jti325i5wjg60nwg [R,L] RewriteRule ^register/?$ /wp-login.php?vus65jti325i5wjg60nwg&action=register [R,L] RewriteCond %{SCRIPT_FILENAME} !^(.*)admin-ajax\.php RewriteCond %{HTTP_REFERER} !^(.*)mydomain.com/wp-admin RewriteCond %{HTTP_REFERER} !^(.*)mydomain.com/wp-login\.php RewriteCond %{HTTP_REFERER} !^(.*)mydomain.com/login RewriteCond %{HTTP_REFERER} !^(.*)mydomain.com/admin RewriteCond %{HTTP_REFERER} !^(.*)mydomain.com/register RewriteCond %{QUERY_STRING} !^vus65jti325i5wjg60nwg RewriteCond %{QUERY_STRING} !^action=logout RewriteCond %{QUERY_STRING} !^action=rp RewriteCond %{QUERY_STRING} !^action=register RewriteCond %{QUERY_STRING} !^action=postpass RewriteCond %{HTTP_COOKIE} !^.*wordpress_logged_in_.*$ RewriteRule ^.*wp-admin/?|^.*wp-login\.php /not_found [R,L] RewriteCond %{QUERY_STRING} ^loggedout=true RewriteRule ^.*$ /wp-login.php?vus65jti325i5wjg60nwg [R,L] </IfModule> # END Better WP Security
- The topic ‘Better WP Security prevents theme access to CSS file’ is closed to new replies.