Ver Mensaje Individual
  #5 (permalink)  
Antiguo 03/10/2007, 14:17
.:Chimera:.
Invitado
 
Mensajes: n/a
Puntos:
Re: Redirigir www a no-www con PHP ?

Ok, lo primero que he provado es esto:

Código PHP:
if (strstr$_SERVER['HTTP_HOST'], 'www.' ) ){

header('Location: http://' substr($_SERVER['HTTP_HOST'], 4) . $_SERVER['REQUEST_URI']);
exit();

Pero aunque no lo creas no hace nada, la web sigue funcionando con el www.

Ahí es donde me he quedado, xDDD