Say you are launching a new website. You create a launch webpage (aka sign-up, beta or pre-registation webpage) for your new domain, e.g. via http://www.launchrock.com. Now, how do you redirect traffic to that launch page, without redirecting all sub-folders, too? In our case we wanted people who visit http://www.timeforequity.co or timeforequity.co to get redirected to our Launchrock.com page. But, we wanted timeforequity.co/blog to still point to our blog. Sounds simple, but it took me ages to find a relatively simple solution for our domain. Here’s how I finally did it.
Redirect from -> to:
http://www.mydomain.com -> host.launchrock.com
mydomain.com -> host.launchrock.com
mydomain.com/blog -> www.mydomain.com/blog [basically, to not redirect it]
How to do it
- Create the sub-domains you need. In our case: beta.timeforequity.co for your launch page and blog.timeforequity.co for your blog.
- Point the signup sub-domain to your launchpage domain using a CNAME DNS setting. We pointed it to host.launchrock.com.
- Then, to redirect also the traffic of people browsing to your website, create an empty Index.html file with the following contents, and upload it to your server. Replace the text ‘beta.mydomain.com’ with your signup domain.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8"> <META HTTP-EQUIV="refresh" CONTENT="0;URL=http://beta.mydomain.com"> <title>Time For Equity</title> </head> <body> </body> </html>
- Lastly, simply place your blog (e.g. WordPress) in a sub-folder of your choice, e.g. timeforequity.co/blog.