Pages

Friday 7 November 2014

How to Redirect Web URL Using Meta Tag

Use a Meta Tag to Redirect URL


Meta tag

Redirect message

Scenario:

You have a website www.old.com where you want to redirect it to a different website www.new.com

HTML Code:

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Refresh" content="0; url=contact.php" charset=utf-8" />
<title>Strawberry Asia Group</title>
</head>

<body>
<p>The contents you are looking for have moved. You will be redirected to the new location automatically.</p>
<p>Click <a href="contact.php" target="_self">HERE</a> to proceed to the new location manually.</p>
</body>
</html>

Refresh will use the redirect function.
Content 0 means it will redirect immediately. You may choose to place 5 (seconds) and let audience to read the redirect message before being redirected.
URL is the new web page that you want to redirect audience too. You may place a complete URL like http://www.new.com.

Instruction:

1. Insert the Meta tag into your web file (*.html/php/etc...) file.
2. Modify the Meta tag properties accordingly. Seconds to refresh, URL destination, and redirection message.
3. Save and upload your file to web server.

Note:

You'll need to know how to do basic HTML editing. Be it using HTML editor or plain text editor.

No comments:

Post a Comment