How to redirect an HTML website index?

Use the Meta Refresh tag within the <head> </head> portion of the page you want to redirect from.

The tag is below:
<meta http-equiv="refresh" content="5;url=http://example.com/" />

Replace http://example.com with the location that you want to redirect to.
Replace the 5 with the number of seconds that you want to wait before redirecting (helpful to display a small notice stating that the page is being redirected) if you want it to occur immediately, place a 0 where the 5 is.

Keep in mind that each browser is different. This will work in most browsers, however depending on the configuration of the browser, meta refreshes may be disabled. I recommend including a link in the body of the page of the redirect that someone can click if the refresh does not work, or they have the meta refresh disabled.
 
Back
Top