Posted By

CammoKing on 11/13/09


Tagged


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

m0rula
creativeboulder


PHP header redirect to WWW


 / Published in: PHP
 

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

Report this snippet  

You need to login to post a comment.