I have a Drupal site which has two pages A(www.mysite.com/A) and (www.mysite.com/B). I want to create a module which will do the following things
-When a user accesses page A detect it.
-Performs some checks in db to find out whether user has access to A
-If user does not have access to page A then redirect him to page B
-Load page B
I am not able to find out which hooks let me alter the path before page loads. Please Help .