Nginx Rewrite Rules
-
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!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Nginx Rewrite Rules’ is closed to new replies.