How to create rule to redirect an admin after log in to an admin specific node? I have different roles for users of my Drupal 7 site. I have added a rule that whenever an authenticated user logs in they are directed to a node (say node/90). This works fine: both admin and authenticated users are redirected.

However I want that the admin be redirected to a different node say node/25. So I added a new rule and selected under condition that user role is administrator and in action also forced a redirect. However the admin still redirects to node/90. Why so and how can I achieve my use case?

As suggested by NikhilM, I have created a custom module for it and the .module file has

    &lt;?php

function redirect_ad_help($path, $arg) {
  switch ($path) {
    case "admin/help#redirect_ad":
      return '&lt;p&gt;' . t("Redirect") . '&lt;/p&gt;';
      break;
  }
}
function redirect_ad_user_login(&amp;$edit, $account) {
 if($account-&gt;uid == 1)
  drupal_goto('node-&gt;97');
 else
  drupal_goto('node-&gt;69');
}


I also tried doing $edit['redirect'] = 'node/97'; instead of drupal_goto() but I am taken to the home page only and not to the desired node.
My guess would be that your rule weights are not as they should be.  If your rule that matches the admin role fires first and your rule that matches all authenticated users fires second then admins will always be redirected to node/90.

Check on the weights.  In your case, you want the more specific rules (the one for admins) to fire second.  So you need to make its weight larger than the more general rule.

Does that make it work for you?  I don't think you should need a custom module for this...

Also - disable the custom module while you're testing this out, to make sure the two are not interfering.