Quick and Easy Web Domain Redirection
There are many reasons why you would want multiple domain names for a single website and just as many ways to achieve the redirection effect. This quick tutorial will demonstrate a dead simple method, in layman’s terms.
It should come as no surprise that many clients have asked me how to get their old domain name to automatically redirect to their new one after launching a site, or to have five or so different domains all point to the one address.
Let’s say for example you own the following domains:
- www.domain.com
- www.domain.com.au
- www.domain.net
There are many reasons why you would do this; mainly for SEO purposes, international site variations or to stop imitators—but that’s a story for another day. Obviously, though I have known clients who ignorantly do this, you’re not going to want to manage three copies of the exact same website for many reasons;
- You’re paying for extra hosting that you don’t actually need
- Your search engine optimisation will be split among three different websites—good luck getting results!
- Your visitors are being forced to download and cache the same information at different addresses.
- None of your analytics will be accurate
The list goes on. What needs to happen in this situation, is a domain redirection. It’s very simple to do, and will save you money and time and will even help your search engine results, not to mention just being “web-friendly”.
Here’s the tutorial
- Open any text/html editor and create a new document.
- Save this document anywhere on your hard drive and name it “index.html” without the quotes.
- Copy the following code into the document:
- Edit “http://www.redirecthere.com” to the full URL of the website you want to redirect to.
- If you wish, edit the title of the webpage—this is not so important, as it will only be seen for a fraction of a second before the redirection kicks in, but it’s always best to be as professional as possible.
- Using FTP or your web control panel, upload this file to the root of each domain you want to redirect from.
1 2 3 4 5 6 7 8 9 | <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <meta http-equiv="refresh" content="0;url=http://www.redirecthere.com" /> <title>You are being redirected…</title> </head> </html> |
That’s it! To make things a little easier, I’ve created this file as a template and made it available for download here:
Download Redirection Template (4KB)
Simply unzip the file and edit as described in steps 4 and 5, then upload it to each domain you wish to redirect from. Too easy!




Chris Sealey
Mark Kemp
Ben Shute
Oliver Maruda
Web Standards Solutions
Rework
CSS Mastery
Designer's Toolbox
Campaign Monitor
Start the Discussion