Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@fedir
Last active December 16, 2015 12:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fedir/5433429 to your computer and use it in GitHub Desktop.
Save fedir/5433429 to your computer and use it in GitHub Desktop.
HTML redirection with both meta refresh and JavaScript ref:http://stackoverflow.com/questions/5411538/how-to-redirect-from-html-page
<!DOCTYPE HTML>
<html lang="fr-FR">
<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>
If you are not redirected automatically, follow the <a href="http://example.com">link</a>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment