Redirection depuis une page HTML

Mots clés : htmlredirectxhtmlmetahtml-headhtml

meilleur 5 Réponses Redirection depuis une page HTML

vote vote

95

<meta http-equiv="refresh" content="0; url=http://example.com/" /> 
vote vote

82

<!DOCTYPE HTML> <html lang="en-US">     <head>         <meta charset="UTF-8">         <meta http-equiv="refresh" content="0; url=http://example.com">         <script type="text/javascript">             window.location.href = "http://example.com"         </script>         <title>Page Redirection</title>     </head>     <body>         <!-- Note: don't tell people to `click` the link, just tell them that it is a link. -->         If you are not redirected automatically, follow this <a href='http://example.com'>link to example</a>.     </body> </html> 
vote vote

75

<script type="text/javascript">     window.location.href = "http://example.com"; </script> 
<meta http-equiv="refresh" content="0;url=http://example.com"> 
vote vote

69

<link rel="canonical" href="http://www.example.com/product.php?item=swedish-fish"/> 
vote vote

53

Header set Refresh "3" 
header("refresh: 3;"); 
<script>     setTimeout(function(){location.href="http://example.com/alternate_url.html"} , 3000); </script> 
<script>     setTimeout("location.reload(true);",timeoutPeriod); </script> 
<script>     window.location.reload(true); </script> 
<meta http-equiv="Refresh" content="3; url=http://example.com/alternate_url.html"> 
<meta http-equiv="Refresh" content="3"> 
<noscript>     <meta http-equiv="refresh" content="3" /> </noscript> 

Questions similaires