Note that there are some explanatory texts on larger screens.

plurals
  1. POCustom domain for GitHub project pages
    text
    copied!<p>I have a <code>gh-pages</code> branch in one of my <a href="http://github.com" rel="noreferrer">http://github.com</a> repos. The GitHub project pages works fine if I go to <a href="http://myuser.github.com/myrepo" rel="noreferrer">http://myuser.github.com/myrepo</a></p> <p>I want to setup a custom domain (myexample.com) that will serve up this project pages. I want <strong>both</strong> <code>myexample.com</code> and <code>www.myexample.com</code> to serve up these project pages.</p> <p><a href="http://pages.github.com/" rel="noreferrer" title="github pages help">GitHub pages help</a> says to make an A record and a CNAME record in your DNS. The A record makes sense, but I do not know what CNAME record to make in my DNS.</p> <p>The <code>gh-pages</code> docs say to make a <code>CNAME</code> record for 'charlie.github.com' which is a user page repository. I do not have a user page repository - I only have a project repository and a <code>gh-pages</code> branch that I want to use for <code>myexample.com</code> and <code>www.myexample.com</code>.</p> <p><em>Do I need to make a user page repository just so I can use my project page for www.myexample.com and myexample.com?</em></p> <p>I would just try it, but I want to make sure this will work as I already have www.myexample.com live and don't want to make a mistake.</p> <p>I emailed GitHub support and their response was</p> <blockquote> <p>You can't have both point to the same gh-pages as far as I know. </p> </blockquote> <p>I find it hard to believe they would only support A records for project pages.</p> <p>Has anyone successfully done this before?</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload