Skip to content

Instantly share code, notes, and snippets.

@salcode
Created July 21, 2015 14:17
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 salcode/05d047199c280650eb85 to your computer and use it in GitHub Desktop.
Save salcode/05d047199c280650eb85 to your computer and use it in GitHub Desktop.
Redirect with the meta Refresh tag. This file was useful to me when redirecting an Amazon S3 file where the bucket was not setup to act as a website.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="Refresh" content="0; URL=http://www.example.com/target/">
<title>Redirect</title>
</head>
<body>
<a href="http://www.example.com/target/">http://www.example.com/target/</a>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment