Showing posts with label auto refresh. Show all posts
Showing posts with label auto refresh. Show all posts

HTML auto redirect website to a different URL

There are several ways of achieving above...

One of it is using just HTML and editing <HEAD> block in the main index.html (or index.htm) file:

Scenario:
  1. You have website on the server, e.g. www.mywebsite.com
  2. You want to redirect it to any other url location either remote or local to your server website, e.g.
www.mywebesite/folder/page2.html

Try putting the following inside <HEAD> of you index.html file:
<meta http-equiv="refresh" content="0;URL=www.mywebesite/folder/page2.html" />

where value zero (0) means the time before the redirection will take process - in that case immediately.

This is it, cheers!