meta - php redirect to another page - Redirect from an HTML page

html redirect meta / html / redirect / xhtml / html-head

Is it possible to set up a basic HTML page to redirect to another page on load?

Banana.html



Answer #1

You could use a META "redirect":

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

or JavaScript redirect (note that not all users have JavaScript enabled so always prepare a backup solution for them)

<script language="javascript">
  window.location = "http://new.example.com/address";
</script>