Support » Plugin: User Upgrade Capability » Redirected to WP-login when trying to reach homepage of /site

  • Resolved KevEd


    I have a multisite setup which was originally a single site and I used the enable-multisite: true in wp-config method to make it a WPMS network. If I’m not already logged in to my main site’s WP-Admin I am unable to access the second site’s homepage when I go to http://(my domain)/the-subsite – I’m redirected to a WP-Login.php page.

    I’ve tried editing wp-config with the extra lines which fix the common login redirect problem.

    If I ‘network disable’ the User Upgrade Capability plugin, the page loads normally.

    I hope you can help.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Justin Fletcher


    Hi KevEd,

    Yes this is the intended functionality of this plugin. If you have enabled ‘User Upgrade Capability’ and configured the second site to point back to the main/ref site etc… then the pluin will limit a user from entering it. If they don’t have the key capability or role (as defined in your settings) they will get redirected to the login prompt.

    To stop this they will need the key cap/role on the main/ref site before they are allowed into the second site. Anyone not logged in is an unknown user to WordPress so there is no way to to know whether to grant (or not) access, so they are blocked and re-directed.

    The Second site is effectively private and only open to those with the key cap or role.

    Hope that makes sense, I’m marking this topic as resolved but do come back with anything else if you have further queries.

    Plugin Author Justin Fletcher


    @keved – I’ve had a bit of time to come back to this and have now added an option to force or not the login.

    see version 2.2 …New: Option added for private or public site

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Redirected to WP-login when trying to reach homepage of /site’ is closed to new replies.