Extra domains 1.5.0
A site can answer on more than one domain: for example example.net and shop.example.com showing the same site as example.com, or old domains that redirect to the new one.
Add a domain
- Open the site's page and find the Domains card.
- Type the domain, such as
example.net. A pasted URL is reduced to its host name. - Choose what it does:
- Shows this site: serves the same content as the main domain.
- Redirects to the main domain: a permanent (301) redirect that keeps the path and query, so
example.net/about?x=1goes toexample.com/about?x=1.
- Press Add domain.
The list shows the main domain (marked Main), www.DOMAIN for a main domain, then every extra domain. Each row has a DNS badge, and when SSL is on, In certificate or Not in certificate. You can change a domain between "shows" and "redirects" at any time, or remove it with the trash button.
SSL for every domain
When the site has SSL, press Update certificate under the form. The panel asks Let's Encrypt for one certificate covering the main domain, www and every extra domain whose DNS already reaches the server (or goes through Cloudflare). Domains that do not point to the server yet are skipped and named in a notice: fix their DNS and press Update certificate again.
Redirect domains keep answering Let's Encrypt's checks, so they can be in the certificate too.
Rules
- Up to 50 extra domains per site.
- Plain names only, no wildcards (
*.example.comis refused). - A domain cannot be the site's own name or its
www, cannot be another site's domain or a name under it, and cannot be another site's extra domain. The panel tells you which site it belongs to. - Adding and removing domains needs the Web server settings right; updating the certificate needs SSL and HTTPS.
- Works the same with Nginx and Apache.
DNS
Each extra domain needs its own A record (or a CNAME) pointing to the server, just like the main domain.