Viewing 3 replies - 1 through 3 (of 3 total)
  • Alessandro Fazzi

    (@pioneerskies)

    I was asking if you and others, like JBird608 fallen in a problem like mine:

    I activated the plugin, it wrote down code to htaccess, but nothing happened and auth service pages stopped working.
    I was using some wordpress internal apache’s rewrite rules for nice url displaying, so I’ve merged that rules with the ones of the plugins; first the plugin’s ones than the wordpress’ ones. Just like this:

    before

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    # END WordPress
    # HIDE-LOGIN
    RewriteEngine On
    RewriteBase /
    RewriteRule ^logout wp-login.php?action=logout&_wpnonce=5ae547769e&hide_out_key=pbaAAi02H [L]
    RewriteRule ^login wp-login.php?hide_in_key=9aX0AaAK&redirect_to=https://greenline-int.com/wp-admin/ [R,L]
    RewriteRule ^admin wp-admin/?hide_admin_key=X6Q [R,L]
    RewriteRule ^register wp-login.php?hide_reg_key=aQR2l&action=register [R,L]
    RewriteCond %{HTTP_REFERER} !^https://greenline-int.com/wp-admin
    RewriteCond %{HTTP_REFERER} !^https://greenline-int.com/wp-login\.php
    RewriteCond %{HTTP_REFERER} !^https://greenline-int.com/login
    RewriteCond %{HTTP_REFERER} !^https://greenline-int.com/admin
    RewriteCond %{QUERY_STRING} !^hide_in_key=9aX0AaAK
    RewriteCond %{QUERY_STRING} !^hide_out_key=pbaAAi02H
    RewriteCond %{QUERY_STRING} !^hide_reg_key=aQR2l
    RewriteCond %{QUERY_STRING} !^hide_admin_key=X6Q
    RewriteRule ^wp-login\.php https://greenline-int.com [L]
    RewriteCond %{QUERY_STRING} ^loggedout=true
    RewriteRule ^wp-login\.php https://greenline-int.com [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    # END HIDE-LOGIN

    after

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    # HIDE-LOGIN
    RewriteRule ^logout wp-login.php?action=logout&_wpnonce=5ae547769e&hide_out_key=pbaAAi02H [L]
    RewriteRule ^login wp-login.php?hide_in_key=9aX0AaAK&redirect_to=https://greenline-int.com/wp-admin/ [R,L]
    RewriteRule ^admin wp-admin/?hide_admin_key=X6Q [R,L]
    RewriteRule ^register wp-login.php?hide_reg_key=aQR2l&action=register [R,L]
    RewriteCond %{HTTP_REFERER} !^https://greenline-int.com/wp-admin
    RewriteCond %{HTTP_REFERER} !^https://greenline-int.com/wp-login\.php
    RewriteCond %{HTTP_REFERER} !^https://greenline-int.com/login
    RewriteCond %{HTTP_REFERER} !^https://greenline-int.com/admin
    RewriteCond %{QUERY_STRING} !^hide_in_key=9aX0AaAK
    RewriteCond %{QUERY_STRING} !^hide_out_key=pbaAAi02H
    RewriteCond %{QUERY_STRING} !^hide_reg_key=aQR2l
    RewriteCond %{QUERY_STRING} !^hide_admin_key=X6Q
    RewriteRule ^wp-login\.php https://greenline-int.com [L]
    RewriteCond %{QUERY_STRING} ^loggedout=true
    RewriteRule ^wp-login\.php https://greenline-int.com [L]
    <em>RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d</em>
    <em>RewriteRule . /index.php [L]</em>
    RewriteRule ^index\.php$ - [L]
    <em>RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d</em>
    <em>RewriteRule . /index.php [L]</em>
    # END HIDE-LOGIN
    </IfModule>

    You can see that

    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]

    was present before and are now doubled by hide-login.

    My final result is:

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    # HIDE-LOGIN
    RewriteRule ^logout wp-login.php?action=logout&_wpnonce=5ae547769e&hide_out_key=pbaAAi02H [L]
    RewriteRule ^login wp-login.php?hide_in_key=9aX0AaAK&redirect_to=https://greenline-int.com/wp-admin/ [R,L]
    RewriteRule ^admin wp-admin/?hide_admin_key=X6Q [R,L]
    RewriteRule ^register wp-login.php?hide_reg_key=aQR2l&action=register [R,L]
    RewriteCond %{HTTP_REFERER} !^https://greenline-int.com/wp-admin
    RewriteCond %{HTTP_REFERER} !^https://greenline-int.com/wp-login\.php
    RewriteCond %{HTTP_REFERER} !^https://greenline-int.com/login
    RewriteCond %{HTTP_REFERER} !^https://greenline-int.com/admin
    RewriteCond %{QUERY_STRING} !^hide_in_key=9aX0AaAK
    RewriteCond %{QUERY_STRING} !^hide_out_key=pbaAAi02H
    RewriteCond %{QUERY_STRING} !^hide_reg_key=aQR2l
    RewriteCond %{QUERY_STRING} !^hide_admin_key=X6Q
    RewriteRule ^wp-login\.php https://greenline-int.com [L]
    RewriteCond %{QUERY_STRING} ^loggedout=true
    RewriteRule ^wp-login\.php https://greenline-int.com [L]
    # END HIDE-LOGIN
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    And it works…most of the time ??

    One possible problem: if I’m in the wp-admin backend, the logout button works; if i’m on the front-end the logout button fails its job and the only way to log me out of there is to use https://address.ex/logout. But it depends on the directive:

    RewriteCond %{HTTP_REFERER} !^https://greenline-int.com/wp-admin
    RewriteCond %{HTTP_REFERER} !^https://greenline-int.com/wp-login\.php
    RewriteCond %{HTTP_REFERER} !^https://greenline-int.com/login
    RewriteCond %{HTTP_REFERER} !^https://greenline-int.com/admin

    so if I’m not arriving from a wp-admin page my request fall into the rwrule:
    RewriteRule ^wp-login\.php https://greenline-int.com [L]
    I think…

    Overall problems seems to big small and solvable, but as it stands at the moment I could use the plugin mostly as inspiration of my custom .htaccess…

    ??

    Yes me too, it’s only working when user try to access wp-admin, but when i access by the path i put in config ex: mydomain.com/exapmle i get an message error 404 page not found ??

    i use stealth login it’s the same this plugin in but now it not available

    thanks, it heleped me too, a lot ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Does not work at all’ is closed to new replies.