Ver Mensaje Individual
  #5 (permalink)  
Antiguo 13/04/2006, 22:09
boycot
 
Fecha de Ingreso: octubre-2004
Mensajes: 2
Antigüedad: 19 años, 6 meses
Puntos: 1
ok muchas gracias

las 3 respuestas me has servido para conseguirlo. lo he hecho asi:

<?php
$TuDominio = $_SERVER['HTTP_HOST'];
$resto_url = $_SERVER['REQUEST_URI'];
if ( substr($TuDominio,0,3) != 'www' ) {
header("location: h ttp://ww w.$TuDominio$resto_url");
exit;
}
?>

Saludos