Simple Index Page Redirection

The following html code, if saved to an html file, will result in the redirection of any visitors to the directory within which it resides (unless your server defaults to a different file type/extension).

 

HTML Redirection Code

Replace “http://websiteURL.com” with, your desired destination URL. Adjust the body text as necessary.

 

REVEAL CODE

<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="refresh" content="1; url=http://websiteURL.com" />
<script>window.location.href = "http://websiteURL.com"</script>
<title>Page Redirection</title>
</head>
<body>
<p>If you are not redirected automatically, please follow this <a href="http://websiteURL.com">link</a>.</p>
</body>
</html>

 

If this article was helpful please take a moment to like us on Facebook, share this on your social media or buy us a cup of coffee.