/********************************************************* Check the URL. If it is not www.christopherlegal.com Redirect it. 301 Redirect Only. Good for Google Josh Axelman 2/12/2008 For Shawn Christopher *********************************************************/ $url = $_SERVER['HTTP_HOST']; // get the URL if($url != "www.christopherlegal.com"){ // check the url header( "HTTP/1.1 301 Moved Permanently" ); // set a 301 for Google header( "Location: http://www.christopherlegal.com" ); // redirect it. Good for non www as well. } // end if ?>
|
||||||||||||||||||||||||||||||||||||||||||||||||||||