Skip to content

Instantly share code, notes, and snippets.

@stovak
Created August 8, 2013 05:34
Show Gist options
  • Save stovak/6181751 to your computer and use it in GitHub Desktop.
Save stovak/6181751 to your computer and use it in GitHub Desktop.
$url = parse_url($_SERVER["SCRIPT_URI"]);
$apath = explode("/", $url['path']);
if ( (
$_SERVER['HTTP_HOST'] == "mktg-dev.apigee.com" ||
$_SERVER['HTTP_HOST'] == "mktg-stg.apigee.com" ||
$_SERVER['HTTP_HOST'] == "apigee.com"
) && (
$apath[1] != "about"
)){
header("location: /about");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment