title: How to use naked GoDaddy domain with OpenShift hosting?
body: <p><strong>Desired Behaviour</strong></p>
  
  <p>I have a GoDaddy domain name and am using OpenShift for hosting.  </p>
  
  <p>I would like the following to be true:</p>
  
  <p>a) user enters <code>www.mysitename.com</code> > user sees <code>mysitename.com</code></p>
  
  <p>b) user enters <code>www.mysitename.com/about.html</code> > user sees <code>mysitename.com/about.html</code></p>
  
  <p>c) user enters <code>mysitename.com</code> or <code>mysitename.com/about.html</code> and they also see that url. </p>
  
  <p>d) to summarise, the <code>www</code> prefix is never displayed anywhere on the site.   </p>
  
  <p><strong>Constraints</strong></p>
  
  <p>OpenShift hosting does not have a static IP, so it is not possible to adjust the <code>A record</code> at GoDaddy.  </p>
  
  <p>The format for the OpenShift app is <code>http://appname-username.rhcloud.com</code>. </p>
  
  <p>You can set up a cname at GoDaddy with the following:</p>
  
  <p><code>www &gt; appname-username.rhcloud.com</code></p>
  
  <p>This means the site is accessible at <code>www.mydomain.com</code> but not at <code>mydomain.com</code>. </p>
  
  <p><strong>Suggested Solutions</strong></p>
  
  <p>There are several posts on the topic that suggest the following but for several reasons are not adequate solutions:</p>
  
  <ul>
  <li><p><a href="https://www.openshift.com/blogs/custom-url-names-for-your-paas-applications-host-forwarding-and-cnames-the-openshift-way" rel="nofollow noreferrer">use a subdomain</a> ie <code>blog.mydomain.com</code></p></li>
  <li><p><a href="https://www.openshift.com/forums/openshift/problem-with-forwarding-and-addresses#comment-31766" rel="nofollow noreferrer">use wwwizer</a></p></li>
  <li><p><a href="https://stackoverflow.com/a/21809900/1063287">use forwarding and masking</a> (causes the url to stay the same when navigating relative links)</p></li>
  </ul>
  
  <p><strong>Question</strong></p>
  
  <p>Can anyone think of another solution that satisfies the desired behaviour stated above?</p>
  
  <p>Or do I need to change to a registrar that allows "naked cname records"?  </p>
  
  <p><strong>Related Posts</strong></p>
  
  <p><a href="https://stackoverflow.com/questions/18431034/godaddy-domain-pointing-to-openshift-hosting">https://stackoverflow.com/questions/18431034/godaddy-domain-pointing-to-openshift-hosting</a><br>
  <a href="https://stackoverflow.com/questions/19946880/naked-domain-with-openshift">Naked domain with Openshift</a><br>
  <a href="https://stackoverflow.com/questions/20045151/how-do-i-add-an-alias-for-a-naked-domain-with-openshift">How do I add an alias for a naked domain with OpenShift?</a>  </p>
  
  <p><strong>Edit</strong></p>
  
  <p>This blog posts sums up the scenario:</p>
  
  <p><a href="http://blog.cloudflare.com/zone-apex-naked-domain-root-domain-cname-supp" rel="nofollow noreferrer">http://blog.cloudflare.com/zone-apex-naked-domain-root-domain-cname-supp</a></p>
  
  <p>Could I sign up for CloudFlare to resolve the issue?</p>
  
  <p>I haven't used it before and don't know how it works.  </p>