I am using Drupal 7. It is good that when user is logged out and again he access the
link he is redirected to Access denied page.
Now I want that instead of Access denied page, i want to redirect to the specific page.
Can i achieve it using rules module or i have to write the code for that