Domain Registration (www vs. bare domain)

D

As you probably know by now, I host my blog on NearlyFreeSpeech.net, they are easily the best host out there, why?

They AREEEE CHEEEEAP!! I mean dirt earth cheap, they make Dreamhost and Bluehost look like Louis Vuitton. How do they do it? They don’t support you, Nearlyfreespeech doesn’t have wannabe handholding software like cPanel, they don’t support you and if you’ve got a question you have to pay to ask them. That’s right…PAY to ASK them. They sell support points, that you buy and then redeem in the form a support question.

On the flip side.

They cost next to nothing and they’re servers haven’t failed me since. My first 3 weeks with them…AMAZING. Total cost? less than 50 cents (I didn’t count the 9.98 for the domain registration though).

If you’re hosting your first web host, I recommend them. You’ll learn everything. They’re FAQ may not be remarkably comprehensive (it’s still good) but with a google searches here and there, you will find what you’re looking for.

Now onto the question at hand, I just noticed today that while http://www.keithrozario.com was working perfectly well–but http://keithrozario.com wasn’t. So if you typed in my website address and missed the www (like a lot of people do), you’re likely to come to a really lousy looking start page, not the kind of first impression you’d want to make.

So I went the the FAQ and found this:

I have NearlyFreeSpeech.NET DNS and www.example.com works but example.com does not. Why?
By default, this is the correct behavior. Using URLs of the form http://example.com/ creates a number of problems, and we strongly recommend that you avoid it.

Nearlyfreespeech doesn’t like you using it, and they give good reasons why you shouldn’t, but that doesn’t discount the fact that you’ll want to get it done. So what’s  poor old blogger to do. Further checks on the FAQ reveal the following:

  • You can add the example.com alias to your site and enable hard canonical type setting.
  • If you have NearlyFreeSpeech.NET DNS and are using your domain with a site hosted here, you can enable this option by selecting the “Add Bare Domain Forward” action on the DNS information panel for your domain in our member UI. (This option will only appear if you are using the www.example.org name as an alias and you are not using the example.org name. If you are using it, you’ll need to delete its alias from your site first.)
  • You can create a second site that automatically redirects people to the preferred name.

Not bad, so nearlyfreespeech actually offer a couple of solutions. The first solution was simple:

  1. Go to the Nearlyfreespeech UI ->Site->Select the site in question->Add a new alias e.g. keithrozario.com
  2. Once keithrozario.com appears under the Site Name and Aliases table in the site menu, click the “Set Canonical Name” (on the menu on the right)
  3. Select HARD Canonical settings and select www.keithrozario.com

The settings take a while to take effect, I’m guessing anywhere from 20 minutes to 1 hour. So relax if it doesn’t happen straightaway (this is typical of DNS changes).

There’s a problem. Once this is set I couldn’t login to wordpress anymore. So I had to go to square one.

  1. Go to the Nearlyfreespeech UI ->Site->Select the site in question-> Once there delete the keithrozario.com alias (if you’ve set this already)
  2. Click on the “View DNS” button next to www.keithrozario.com .
  3. Click on the “Add bare domain forward” button. This button won’t be visible if you didn’t delete the bare domain alias. e.g. keithrozario.com (without the ‘www’).
  4. Once that’s done. Back to the Site menu and select “Add new alias” (on the menu on the right)
  5. Enter keithrozario.com as the alias. And you’re good to go.

Now it works with both wordpress login and regular login.

And now the www domain and the bare domain both point the same awesome looking wordpress page!! 🙂

3 comments

Astound us with your intelligence