WordPress.org

Forums

Hid-login multisite re-direct loop (2 posts)

  1. elanio
    Member
    Posted 2 years ago #

    Hi, I am using..er.. trying to use this plugin. I have a multisite install.

    Do I install and activate this at the network level, or do I activate it at the blog level?

    When I activated it, this plugin worked at the network level. When I tried to go to the blog level dashboard, I was told that there is a redirect loop that prevents the page from loding.

    code

    # HIDE-LOGIN
    RewriteEngine On
    RewriteBase /
    RewriteRule ^my-logout wp-login.php?action=logout&_wpnonce=78475b5ba8&hide_out_key=aKd1PrA [L]
    RewriteRule ^my-login wp-login.php?hide_in_key=03F0jiAa&redirect_to=http://blog.mysite.com/wp-admin/ [R,L]
    RewriteRule ^my-admin wp-admin/?hide_admin_key=AMaAB0T [R,L]
    RewriteCond %{HTTP_REFERER} !^http://blog.mysite.com/wp-admin
    RewriteCond %{HTTP_REFERER} !^http://blog.mysite.com/wp-login\.php
    RewriteCond %{HTTP_REFERER} !^http://blog.mysite.com/my-login
    RewriteCond %{HTTP_REFERER} !^http://blog.mysite.com/my-admin
    RewriteCond %{QUERY_STRING} !^hide_in_key=03F0jiAa
    RewriteCond %{QUERY_STRING} !^hide_out_key=aKd1PrA
    RewriteCond %{QUERY_STRING} !^hide_reg_key=aqFB0f60
    RewriteCond %{QUERY_STRING} !^hide_admin_key=AMaAB0T
    RewriteRule ^wp-login\.php http://blog.mysite.com [L]
    RewriteCond %{QUERY_STRING} ^loggedout=true
    RewriteRule ^wp-login\.php http://blog.mysite.com [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    # END HIDE-LOGIN

    I would really like to use this, but am unsure if I am doing something incorrectly. Any and all help is appreciated.
    http://wordpress.org/extend/plugins/hide-login/

  2. elanio
    Member
    Posted 2 years ago #

    Also how does this play with other .htaccess rules, where does the generated code NEED to lie?

    Options All -Indexes
    <files .htaccess>
    Order allow,deny
    Deny from all
    </files>
    
    <files readme.html>
    Order allow,deny
    Deny from all
    </files>
    
    <files license.txt>
    Order allow,deny
    Deny from all
    </files>
    
    <files wp-config.php>
    Order allow,deny
    Deny from all
    </files>

    And lastly, how does this .htaccess uphold with wp updates?

Topic Closed

This topic has been closed to new replies.

About this Topic