WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. Kerfred
    Member
    Posted 2 years ago #

    On a multisite installation, the users can't login except on the first site.
    They are redirected to a 404 error page.

    I'm using version 3.0.11 of your plugin.

    Again, thank you very much for this wonderful plugin.

    http://wordpress.org/extend/plugins/better-wp-security/

  2. Kerfred
    Member
    Posted 2 years ago #

    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 ?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic