Welcome to the Instapage Support Center

|

How do I set up a “naked” domain?

 

To set this up, you'll do two things:

  1. Create a 301 redirect with your existing hosting provider, redirecting 'yourdomain.com' to 'www.yourdomain.com'.
  2. Configure your custom domain in Instapage to be 'www.yourdomain.com' and publish an Instapage landing page to it.

That's it!  Now visitors will be redirected from 'yourdomain.com' to your Instapage landing page at 'www.yourdomain.com'.

Why can't I just directly use 'yourdomain.com' without the redirect?

This is a common question, and unfortunately the full answer requires a bit of explanation.

First, we insist you create a CNAME record for your custom domain that points to pageserve.co instead of an A record that points to a particular server's IP address.  The reason we do this is that we intend on continually upgrading our infrastructure, adding servers in multiple distributed locations to serve up pages faster world-wide, and if you pointed your custom domain at one particular IP address, your pages would break as we add servers.  That would be bad.

Now, there are apparently some mail servers out there that don't properly handle a mix of CNAME and MX records for the same name.  The MX record is how mail servers know where to deliver your mail.  So if you happened to setup something like the following:

yourdomain.com  CNAME  pageserve.co
yourdomain.com  MX  mail.yourdomain.com

some mail servers would look at this, and use the CNAME instead of the MX, resulting in them attempting to deliver mail to pageserve.co  and ultimately in you not receiving your email.  That would also be bad.  Even worse, we've encountered some DNS servers that won't resolve this properly at all, resulting in some (but not all) visitors not being able to reach your pages.

How do I set up the redirect from my "naked" domain to "www.mydomain.com"?

There are a number ways of accomplishing this, here are just a few:

  • Your best bet is to find a "Redirects" section in your host/DNS control panel and configure it there. You might also try emailing your Host/DNS support team with the request. 
  • If your host allows it (this won't work on Windows-based hosting), you can also use an .htaccess file. You can create this file with any plaintext editor, and then place the file in root of yourdomain.com. It should look something like this:
Options +FollowSymlinks
RewriteEngine on
rewritecond %{http_host} ^domain.com [nc]
rewriterule ^(.*)$ http://www.domain.com/$1 [r=301,nc] 
  • There is also a great service called WWWizer which will handle the redirect for you. All you need to do is create an A Record that points to their IP address and they'll 301 your naked domain traffic over to your www'd domain. InstaPage can't officially vouch for the service, but we've used them a few times and it works great!
Have more questions? Submit a request
Was this article helpful?
3 out of 3 found this helpful

Need Further Help?

Tell us what you need and we will be happy to assist you.

Our team of expert support staff and our community can answer your questions. Submit a ticket, reach out on live chat or call us now!