How to redirect a person to a other server based on there location to make the websit
Hi !
You can set up a web page to inform any browser which happens to load it that there is another web page it should go to instead, after an optional delay.
This is accomplished using a "refresh" meta command in the header section
<head>
.
.
</head>
of your HTML file, along with the title and any "keywords" or other meta commands.
Syntax
The syntax for the "refresh" meta command is
<meta http-equiv="refresh" content="N; URL=other-web-address">
where N is the approximate number of seconds that you want the current web page to be displayed before the browser automatically goes to the other web address. If N = 0, then the browser should go immediately to the other web address.
Netiquette tip
In case someone's browser doesn't handle these automatic redirects (most browsers do handle them, but some allow them to be turned off, as a way of discouraging "web spam", which often uses this type of "refresh" redirect), you may want to provide a second route to the intended destination by way of a standard link (see the example, below).
Example
<html>
<head>
<title>A web page that points a browser to a different page after 2 seconds</title>
<meta http-equiv="refresh" content="2; URL=http://www.yourwebpage.com/page.htm"…
<meta name="keywords" content="automatic redirection">
</head>
<body>
If your browser doesn't automatically go there within a few seconds,
you may want to go to
<a href="http://www.yourwebpage.com/page.ht… destination</a>
manually.
</body>
</html>
|