HTML redirect visitor from one URL to another URL automatically
If we want to redirect a URL to a different URL we can use an HTTP redirect.
Sample Syntax
<meta http-equiv="refresh" content="time; URL=new_url" />
time represents the delay before the browser redirects the user to a different page. Define it in seconds, or enter a 0 if you need an immediate HTML redirect.
new_url represents the URL address you need to redirect your user to after the delay.
Let say I have an index.html and want to redirect it to a different page. We can use below sample code.
<html>
<head>
<meta http-equiv="refresh" content="10; URL=https://erp.funoracleapps.com/" />
</head>
<body>
<h2>This URL is obselete,Please save the new URL in your favourites.
<p>You will be automatically redirected to new Dashbaord URL,If you are not redirected in ten seconds, <a href="https://erpfunoracleapps.com/">click here</a>.</p>
</body>
</html>
Post a Comment
Post a Comment