Public feed #956012

Anonymous

public text v1 · immutable
Raw Edit
·published 2008-03-24 23:47 UTC
rendered paste body
<?php

   $url = split("[\.]", $_SERVER['SERVER_NAME']);
   if(trim(strtolower($url[0])) == 'www') {
// DEMaS CoDIGO
echo 'p√°gina principal';

   }else {
           header("Location: http://www.".$_SERVER['SERVER_NAME']);
   }
?>