mar 13 2010
Reroutage html
Besoin de rerouter automatiquement vers un site, une page ?
Code de reroutage immédiat en html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="refresh" content="0;url=http://www.monsite.com"> <title></title> </head> <body> </body> </html>
Ce script permet de rerouter en html vers un site sans toucher aux DNS.
content à 0 = délai immédiat, à 5 délai de 5 secondes, etc.
ce qui permet de mettre une phrase avant le reroutage comme ceci par exemple :
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="refresh" content="5;url=http://www.monsite.com"> <title></title> </head> <body> Dans 5 secondes vous serez rerouté vers mon nouveau site Merci de bien vouloir noter ma nouvelle adresse </body> </html>

