This document describes the steps to move the interuista project under the
PythonMilano GitHub organization and configure GitHub Pages with a custom domain.
- Repository:
keobox/interuista - GitHub Pages URL:
https://keobox.github.io/interuista publishconf.pySITEURL:https://keobox.github.io/interuista
- Go to
https://github.com/keobox/interuista-> Settings -> General - Scroll to Danger Zone -> click Transfer repository
- Select PythonMilano as the new owner
- Confirm the transfer
After transfer:
- The repo will be at
https://github.com/PythonMilano/interuista - GitHub automatically redirects the old URL
- You keep contributor access
After the transfer, GitHub Pages will serve the site as a project site under the PythonMilano organization.
Since PythonMilano/pythonmilano.github.io uses the custom domain milano.python.it,
the site will be available at: https://milano.python.it/interuista
Update publishconf.py:
SITEURL = "https://milano.python.it/interuista"This is the interim setup until the custom domain is ready.
When ready to use the dedicated domain:
At your domain registrar for intervistapythonista.com, add one of:
Option A - CNAME (recommended for apex or www):
| Type | Name | Value |
|---|---|---|
| CNAME | @ | pythonmilano.github.io |
Note: some registrars don't support CNAME on apex domains. In that case use Option B
or set up the CNAME on www and redirect apex to www.
Option B - A records (for apex domain):
| Type | Name | Value |
|---|---|---|
| A | @ | 185.199.108.153 |
| A | @ | 185.199.109.153 |
| A | @ | 185.199.110.153 |
| A | @ | 185.199.111.153 |
Optionally add a CNAME for www:
| Type | Name | Value |
|---|---|---|
| CNAME | www | pythonmilano.github.io |
- Go to
https://github.com/PythonMilano/interuista-> Settings -> Pages - Under Custom domain, enter
intervistapythonista.com - Click Save (this creates a
CNAMEfile in the repo) - Wait for DNS to propagate (can take up to 24-48 hours)
- Check Enforce HTTPS once the DNS check passes
Update publishconf.py:
SITEURL = "https://intervistapythonista.com"https://intervistapythonista.comserves the site- HTTPS works correctly
- The org site
milano.python.itis unaffected
- Each project repo under an organization can have its own independent custom domain,
it won't conflict with
milano.python.iton the org site. - If you want a personal fork after the transfer, you can fork it back to your personal account from PythonMilano.