Redirect HTML page is done using the meta refresh for fallback purposes in the head section of a HTML i.e. replace old page with the URL of the page you need to redirect to.
This is the simplest way to Redirect HTML page i.e. one URL to another URL with the Meta Refresh tag.
We need to place this meta tag inside the <head> at the top portion of any HTML page like below:
<meta http-equiv="refresh" content="seconds; url=URL" />
<meta http-equiv="refresh" content="0; url=http://example.com/" />
Suppose, we’ve just moved our website to a new location and we need to close the old page. So, we don’t want all pages from the old site to give a 404 Not Found message. The only thing is we need to redirect those old links to the new site.
Read Also: Meta Tags in HTML
Note to remember that HTML meta refresh redirect is just a client side redirect and this is not a 301 permanent redirect. And a 0 seconds time interval is considered by Google like a hint for 301 redirect of page rank transfer.
<!DOCTYPE html> <html> <head> <meta http-equiv="refresh" content="0; url=http://example.com/" /> </head> <body> <p>The page has moved to: <a href="http://example.com/">this page</a></p> </body> </html>
Introduction Layoffs have always been a part of corporate life, but the way they’re happening…
Relocating is often an exciting milestone, whether you’re starting a new job, heading to college,…
When you select cheap domain names, it can have a significant impact on the success…
Shared hosting struggles to keep up the performance commitment. Therefore, low-cost VPS hosting is an…
Does your melasma return every summer despite months of treatment? Melasma appears as brown or…
Fine lines, sagging skin, and uneven tone—these are common signs of aging that many people…