Return to Snippet

Revision: 20369
at November 13, 2009 11:59 by CammoKing


Initial Code
if ($_SERVER['SERVER_NAME']=='somesite.com'){
    header('Location:http://www.somesite.com'.$_SERVER[REQUEST_URI]);
exit();

Initial URL

                                

Initial Description

                                

Initial Title
PHP header redirect to WWW

Initial Tags

                                

Initial Language
PHP