easy page redirect timer via html meta tag

A very easy – although not very clean – way to redirect a webpage to a different (in/external) location is via the html meta tag:

<meta http-equiv="refresh" content="10;url=https://yoursite.com">

where 10 represents the number of seconds before the redirect will be excuted.

this comes in handy when you want your visitor to read a short text before being redirected.

don’t forget to provide a clickable link to the redirection url in the short text as well, for when the visitor’s browser doesn’t except the redirect code for whatever reason.

So directly after the <html> and <head> tag, place the meta tag so the simplified result looks like this:

<html>
<head>
<meta http-equiv="refresh" content="10;url=https://yoursite.com">
</head>
<body>
<p>
Place message to your visitor here
</p>
</body>
</html>