How do you redirect anonymous users to another page without rules?
I think something like below should work.

function modulename_init() {
  global $user;
  $args = arg();
  if(!user-&gt;uid &amp;&amp; ($args[0] == 'user' &amp;&amp; $args[1] == 'login')) {
    drupal_goto('page_you_want_anony_to_redirect_to');
  }
}