aah necesitas esto:
$_SERVER[HTTP_HOST]
Esto te devolverá el nombre del servidor donde estás, por lo tanto quedaría:
			$_SERVER[HTTP_HOST]
Esto te devolverá el nombre del servidor donde estás, por lo tanto quedaría:
Código (php) [Seleccionar] 
<?php
header('location: http://'.$_SERVER[HTTP_HOST].'/'.$_SERVER[HTTP_HOST].'.html');
?>
				
.