How do I redirect to a certain page from user profile page I have created a hook and redirected the users after login from the login page to a certain page. 

But when I go to /user/login after a successful login will redirect me to the user profile page (/user/1). How do I redirect a logged in user when trying to access /user/login page to a certain page that I have previously created.
Maybe this module user_default_page, might be what you are looking for.

From the description, 


  Fill the 'Redirect to URL' field and 'Message' field for both Login
  and Logout fieldset.