How to redirect your domain to Launchrock.com, but keep a blog as a sub-folder?

Oded Ran
Oded Ran
Apr 12, 2014 · 1 min read

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 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 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.

Summary

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

  • 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.

Oded Ran

Personal blog of Oded Ran, covering technology, startups…

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch

Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore

Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store