• Nginx rewrite rules miss a forward slash…

    Current rules shown by the plugin…

    rewrite ^login/?$ /wp-login.php break;
    rewrite ^postpass/?$ /wp-login.php?action=postpass break;
    rewrite ^logout/?$ /wp-login.php?action=logout break;
    rewrite ^lostpassword/?$ /wp-login.php?action=lostpassword break;
    rewrite ^resetpass/?$ /wp-login.php?action=resetpass break;
    rewrite ^register/?$ /wp-login.php?action=register break;

    The correct rules are…

    rewrite ^/login/?$ /wp-login.php break;
    rewrite ^/postpass/?$ /wp-login.php?action=postpass break;
    rewrite ^/logout/?$ /wp-login.php?action=logout break;
    rewrite ^/lostpassword/?$ /wp-login.php?action=lostpassword break;
    rewrite ^/resetpass/?$ /wp-login.php?action=resetpass break;
    rewrite ^/register/?$ /wp-login.php?action=register break;

    Hope this helps someone!

    • This topic was modified 7 years, 10 months ago by Pothi Kalimuthu. Reason: better formatting
Viewing 1 replies (of 1 total)
  • Plugin Author Grégory Viguier

    (@greglone)

    Hello Pothi.

    You’re right. These rules, among other things, will be improved in the next release. All the improvements I’ve done in SecuPress will be bring back here. I already started a while ago but it takes some time.

    Cheers o/

Viewing 1 replies (of 1 total)
  • The topic ‘Nginx Rewrite Rules’ is closed to new replies.