Friday, April 27, 2012

Shopify Custom Domain without the WWW on GoDaddy

I'm hosting my newest project on Shopify. I've a slight amount of experience with the platform from an aborted previous ecommerce effort, and I have to say it's pretty slick.

I don't remember if I ran into this the first time, but I have my own domain for the new project and I wanted to get it set up to work without the www prefix, i.e. I wanted it to be http://MyStore.com. Additionally, I wanted anyone who typed in http://www.MyStore.com/ to be automatically forwarded to the non-www version.

I'd registered my domain name with GoDaddy. Shopify's help system provides instructions for setting up your domain name on GoDaddy so your Shopify store will resolve to it. However, they provide instructions that make the www version the default and also use a domain forwarding method. Not what I wanted.

An hour or two of fruitless searching failed to resolve my problem, but I eventually figured it out. So.... if you have a Shopify store, registered your domain name through GoDaddy, and want your store URL to be the non-www version, here's how you do it.
  1. Log into your GoDaddy account
  2. Go to the Domain Manager
  3. Click on the domain name you want to use
  4. Find the DNS Manager section (under the Domain Enhancements section) and click on the Launch link
  5. Edit the A (Host) record, chaing the IP address to 204.93.213.45 (Shopify's IP addy for your store - see Shopify DNS help). It should look like:

  6. Make sure the CName for the WWW alias is set to @:

  7. Now go to your Shopify admin section, and go to Preferences-->DNS & Domains
  8. Click the Add a domain you already own link
  9. Enter you web site domain without the www
  10. Click the Add a domain you already own link
  11. Enter you web site domain with the www
  12. Make the one without the www you primary domain and check the box always redirect customers here?
It might takea few hours up to a day or two for all the changes to take, but when they do, you'll be abelt to get to your store with http://MyStore.com and when you enter http://www.MyStore.com it will automatically resolve to http://MyStore.com.

Yay!




No comments: