HTML code for auto-redirect

Here is some simple html code to cause an automatic redirect to another site. I found this on stackoverflow (here…)

The first way (quickest) is to add a meta tag to your existing “index” file…

Place this meta tag in the HEAD section

The second method (best) is to use both meta, and JavaScript and create an “index” file then add it to your root…

Enter this code in a txt editor (like Notepad) and change “YOURSITE” to the URL you would like to re-direct to.

Then save this as “index.html” and place it in the public_html folder of the site your are redirecting from. If there is an existing “index.html”, you may want to rename the old one instead of deleting it (you may need it later).

HTML code for auto-redirect

To copy the codes directly, check out the original thread here

Leave a comment

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s