Title: Help &#8211; Does this work with NGINX?
Last modified: August 22, 2016

---

# Help – Does this work with NGINX?

 *  Resolved [wp_muro](https://wordpress.org/support/users/wp_muro/)
 * (@wp_muro)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/help-does-this-work-with-nginx/)
 * I can’t get this plugin’s redirects to work with nginx. It was working correctly
   with apache’s .htaccess rules, listed below.
    Even without any rules, the login
   page at /login will show up. When the form submits, which is going to /login,
   it never sets the cookie and never logs in.
 * [@nginx](https://wordpress.org/support/users/nginx/) rules
    location /login {
   return 200 /wp-login.php?; } location /passwordreset { return 200 /wp-login.php?
   action=lostpassword; } location /join { return 200 /wp-login.php?action=register;}
   location /logout { return 200 /wp-login.php?action=logout; }
 * my old .htaccess rules from Apache
    RewriteRule ^login /wp-login.php [QSA,L] 
   RewriteRule ^passwordreset /wp-login.php?action=lostpassword [QSA,L] RewriteRule
   ^join /wp-login.php?action=register [QSA,L] RewriteRule ^logout /wp-login.php?
   action=logout [QSA,L]
 * With the plugin enabled, when I attempt to load: /wp-login.php it redirects to/
   login.
    This is the same behavior with or without nginx rules. Seems like the
   POST is not making it to the wp-login.php routine. Anyone see this issue before,
   or have this issue solved?
 * Much appreciated.
 * [https://wordpress.org/plugins/custom-login/](https://wordpress.org/plugins/custom-login/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Austin](https://wordpress.org/support/users/austyfrosty/)
 * (@austyfrosty)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/help-does-this-work-with-nginx/#post-5555408)
 * Hello, I am not familiar with NGINX rules. But Custom Login doesn’t manage any
   rewrites or redirects.
 * The `/login` redirect is a core WordPress feature, which will always redirect
   to wp-login.php.
 *  Thread Starter [wp_muro](https://wordpress.org/support/users/wp_muro/)
 * (@wp_muro)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/help-does-this-work-with-nginx/#post-5555415)
 * Thanks – we are trying the profile builder plugin, as to create custom login 
   and profile pages. These redirects were disabled and handled with a wp_login 
   filter instead.
 * // login redirect to home url
    add_filter( ‘login_redirect’, create_function(‘
   $url,$query,$user’, ‘return home_url();’ ), 10, 3 );

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Help – Does this work with NGINX?’ is closed to new replies.

 * ![](https://ps.w.org/custom-login/assets/icon.svg?rev=3077180)
 * [Custom Login](https://wordpress.org/plugins/custom-login/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/custom-login/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/custom-login/)
 * [Active Topics](https://wordpress.org/support/plugin/custom-login/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/custom-login/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/custom-login/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [wp_muro](https://wordpress.org/support/users/wp_muro/)
 * Last activity: [11 years, 6 months ago](https://wordpress.org/support/topic/help-does-this-work-with-nginx/#post-5555415)
 * Status: resolved