Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if ($_SERVER['HTTP_HOST'] != 'www.mydomain.ca')
- {
- header("HTTP/1.1 301 Moved Permanently");
- $loc = "http://www.mydomain.ca".$_SERVER['SCRIPT_NAME'];
- header("Location: ".$loc);
- exit;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement