what is wrong with
<?php
if(!stristr($_S ERVER['SERVER_NAME'], 'www')) {
Header("Locatio n: http://www.theSpear.ne t" . $_SERVER['PHP_SELF']);
exit();
}
?>
I am trying to make it redirect to www.theSpear.net if www. is not there,
but it doesnt work.. any ideas?
<?php
if(!stristr($_S ERVER['SERVER_NAME'], 'www')) {
Header("Locatio n: http://www.theSpear.ne t" . $_SERVER['PHP_SELF']);
exit();
}
?>
I am trying to make it redirect to www.theSpear.net if www. is not there,
but it doesnt work.. any ideas?
Comment