Ver Mensaje Individual
  #2 (permalink)  
Antiguo 04/04/2005, 08:30
Anarko
 
Fecha de Ingreso: febrero-2004
Mensajes: 1.987
Antigüedad: 20 años, 2 meses
Puntos: 22
Con la funcion
Código PHP:
eregi() 
Primero la lees en php.net
Luego buscas $_SERVER['REQUEST_URI'] y lo lees
Luego te pillas la funcion header()

Y ahora si haces tu script:

Evaluas asi: if(eregi('www.',$_SERVER['REQUEST_URI']))...

Y haces el header:
header('location:'.eregi_replace('www.','',$_SERVE R['REQUEST_URI']));