Redirect domain names
Registering more than one domain name to point to a single Web site isn’t unusual. Nor is it strange to host a Web page at an ISP or community site and want a subdomain to bring people directly to what’s often a long and hard-to-remember URL.
Redirection is the answer. With redirection, browsers can be pointed from a subdomain to a Web site. You use redirection when you want something you don’t control to be pointed to by something you do.
For instance, if you have a community page at a social or group site, and its URL is something extraordinarily bulky, you might prefer a shorter address to act as the public URL.
How DNS resolution works
Domain Name System (DNS) is the glue that binds subdomains and IP addresses. Here’s how it works.
.[a period]), the .com’s nameserver, and socko.com’s main nameserver. Because Socko Corp. delegates authority for its divisions worldwide, your ISP’s DNS server is told to check dns-eu.socko.com for European DNS information.
HTML Tags The
metatag provides information about a page and can define attributes that control browser behavior. The attributes we’re interested in are
http-equiv, which tells most browsers to reload the page using the URL that’s specified next, and
content, which provides the parameters. The parameters are the time to refresh (measured in seconds) and a URL. The tag might look like this:
<meta http-equiv="refresh" content="0;url=http://glennf.com/new_page.html">
metatags must be in the
headportion of the HTML for a Web page. For redirection, I suggest creating the shortest possible page to make reloads as fast as possible, as shown here:
<html> <head> <title>Redirecting</title> <meta http-equiv="refresh" content="0;url=http://glennf .com/new_page.html"> </head> <body></body> </html>
(Of course, you’ll use your own URL, not mine.)
headportion of the page; follow it with the
Stealth redirection uses Web frames to make the browser display both the originating URL and the destination Web page. Most modern browsers support frames. But note that stealth redirection can negatively affect the way search engines index your site, and some tools to fight fraud might flag your site as problematic.
Most DNS hosts offer some form of stealth redirection in addition to regular redirection. Here’s how you’d turn on either form of redirection at one DNS host, easyDNS; the steps are similar at many others.
First, log in to your account. Find the domain name for which you want to add stealth redirection, and click on the DNS link to the right of its name. Scroll down to URL Forwarders. (If the contents aren’t displayed, click on the plus sign [+] on the right side of the box.) Enter the subdomain you want to forward and the URL to which it should forward. Select the Stealth option to use stealth redirection; leave it deselected for normal redirection. Click on Next to confirm and activate the changes.
Using multiple subdomains at one domain name allows you to have many addresses that resolve to the same Web site. For instance, when users type in
www.cage -free-chickens.com, you might want them to land at the same place.
To point multiple subdomains to one set of files, contact your Web host and inform it of the subdomain names you want to point to a Web site. Some Web hosts may let you enter this information directly via your account. Obtain the IP address settings from your Web host for where to point the subdomains. Visit your DNS host and enter the subdomains you’re defining and the associated IP addresses (or just the IP addresses if you’re moving the pointer for existing subdomains).
[ Glenn Fleishman writes about Wi-Fi and Macs from his home in Seattle, Washington. ]