I'm using the rules module with drupal 7 in order to redirect anonymous users to the login page.

Events: Drupal is initializing Conditions: User has role(s) - Parameter: User: [site:current-user], Roles: anonymous user NOT Text comparison - Parameter: Text: [site:current-page:url], Matching text: user/login Actions: Page redirect - Parameter: URL: user/login

My problem is I need the "request new password" to work. How do I tell Rules to ignore clicks to user/password?

This is the current setup for the Actions but it doesnt work. enter image description here
When a user gets to the login page I want them to be able to click Request New Password and not be redirected back to user/login.

1 Answer 1


Try adding a condition to your redirection rule like this :

  1. Path has url alias
  2. Value : user/password
  3. Negate : True

Edit :

It must be something like this :

Rules negate condition

  • Could you clarify Negate:true. Should Negate be checked or unchecked? Jan 7, 2015 at 21:33
  • negate true = checked Jan 7, 2015 at 23:31
  • I've edited mu answer. Check the screenshot Jan 8, 2015 at 11:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.