HTML
Use the following meta inside <head> to make URL redirection after seconds.
<head> <meta http-equiv="refresh" content="5; URL=https://ykyuen.wordpress.com"> </head>
You will be redirect to this blog after 5 seconds. =P
PHP
You can also make it in PHP.
<?php header("refresh: 5; https://ykyuen.wordpress.com"); echo "You will be redirect in 5 seconds"; ?>
Done =)
Reference: Auto Redirect after 5 Seconds..
Hmm would you by chance know how to redirect after x seconds only if not logged on. i.e if the person is logged in then the redirect does not execute? I basically am trying to figure out how to allow a person access to a page for 30 sec and then to redirect them to logged/register page and the redirect again to that initial page.
LikeLike
Sure. you should be able to check if a user has logged in or not in PHP, it depends on your authentication design. Use a if block and wrap that redirection logic with ob_start() and ob_end_flush() functions. For more information about the ob_start() and ob_end_flush(), you can refer to PHP – Redirect URL After Form Submission
LikeLike