HTML: Request - Response Redirection

sexycollegeboy

New Member
Lets say I have a website \[code\]www.mySite.com\[/code\] and there are a lot of pages whose links are \[code\]www.mySite.com\contact.php\[/code\] and \[code\]www.mySite.com\about.php\[/code\].What if I want that when someone enters a direct link like \[code\]www.mySite.com\about.php\[/code\] instead of opening that page it should go to a page \[code\]myPolicy.php\[/code\] and then \[code\]myPolicy.php\[/code\] may\may not refer the user to the requested page....HOW to do ITOne method I thought is have a PHP page \[code\]myPolicy.php\[/code\] and include\require it in beginning of every page so than I can decide weather to continue the requested page or redirect somewhere else or not.... Is that okay?Is there a better way or some best practice for this kind of thingy?
 
Back
Top