Support » Plugin: iThemes Security (formerly Better WP Security) » [Plugin: Better WP Security] Can't login on multisite

Viewing 1 replies (of 1 total)
  • I have found a solution.
    The login was not working because I use multiple domains in my multisite installation.
    In the .htaccess, there are:
    RewriteCond %{HTTP_REFERER} !^(.*)maindomain.com/wp-admin
    RewriteCond %{HTTP_REFERER} !^(.*)maindomain.com/wp-login\.php
    RewriteCond %{HTTP_REFERER} !^(.*)maindomain.com/new-login
    RewriteCond %{HTTP_REFERER} !^(.*)maindomain.com/new-admin
    RewriteCond %{HTTP_REFERER} !^(.*)maindomain.com/new-register

    The solution is to duplicate these lines for each other domain like this:
    RewriteCond %{HTTP_REFERER} !^(.*)otherdomain.com/wp-admin
    RewriteCond %{HTTP_REFERER} !^(.*)otherdomain.com/wp-login\.php
    RewriteCond %{HTTP_REFERER} !^(.*)otherdomain.com/new-login
    RewriteCond %{HTTP_REFERER} !^(.*)otherdomain.com/new-admin
    RewriteCond %{HTTP_REFERER} !^(.*)otherdomain.com/new-register

    Do you have a better solution ?

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Better WP Security] Can't login on multisite’ is closed to new replies.