Il faut utiliser le header "HTTP 301 Permanent Redirect"
En PHP ça donne
<?php
header("HTTP/1.1 301 Moved Permanently" );
header("Location: http://www.somacon.com/" );
exit();
?> |
De cette manière, le .net pointe sur le .com, les moteurs de recherches arrivant par le .net référenceront le .com (et non le .net) et les logiciels les plus "intelligents" seront capables de bookmarker le .com quand l'utilisateur posera un bookmark sur le .net
---------------
I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing?