Hope I’m talking about the same thing here – I have a problem with a WordPress Multisite setup – sharing the 1 database.
The problem occurs when I switch on the plugin’s Enable Hide Backend feature.
With this feature on I can’t login into the dashboard on any of my ‘child’ sites – only the master site.
Looking at the .htaccess file with the feature enabled – gave me and idea to why this may be the case…? Here’s the file (domain name and key have been changed):
# BEGIN Better WP Security
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^login/?$ /wp-login.php?magickey [R,L]
RewriteCond %{HTTP_COOKIE} !^.*wordpress_logged_in_.*$
RewriteRule ^admin/?$ /wp-login.php?magickey&redirect_to=/wp-admin/ [R,L]
RewriteRule ^admin/?$ /wp-admin/?magickey [R,L]
RewriteRule ^register/?$ /wp-login.php?magickey&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} !^magickey
RewriteCond %{QUERY_STRING} !^action=logout
RewriteCond %{QUERY_STRING} !^action=rp
RewriteCond %{QUERY_STRING} !^action=register
RewriteCond %{HTTP_COOKIE} !^.*wordpress_logged_in_.*$
RewriteRule ^.*wp-admin/?|^.*wp-login\.php not_found [L]
RewriteCond %{QUERY_STRING} ^loggedout=true
RewriteRule ^.*$ /wp-login.php?magickey [R,L]
</IfModule>
# END Better WP Security
Would the RewriteCond lines that all refer to the ‘master’ domain be a possible reason for not being able to login to the ‘child’ domains? None of the child domain folders have htaccess files in them of their own so would it not read the master htaccess?
I could be barking up the wrong tree completely here..