Aliases & Domains

  1. Home
  2. Docs
  3. Aliases & Domains
  4. Add a new HTTPS Alias (Domain/Subdomain)

Add a new HTTPS Alias (Domain/Subdomain)

This shortcode allows you to add an alias and issue an SSL certificate for it in the process. An alias is a domain / subdomain you can add to point to an existing site on your server.

To run Nodalio shortcodes on your server, please follow this guide.

Shortcode usage format:

  • sudo nodalio aliasadd-https primary.com domain.com

Shortcode reference:

  • primary.com – your site’s primary domain/subdomain.
  • domain.com – the alias you need to add.

A server alias works differently compared to DNS records. An alias points requests coming from a specific domain to a directory on your server. This is different than a CNAME record which acts as a shortcut to your site. When you need to add a large number of aliases (for example, in a large multisite) it is recommended to use a domain wildcard on your server and DNS instead.

There are 2 commands for adding an alias. If your site does not have an SSL certificate, please use the aliasadd shortcode instead. Using this shortcode on a site without an SSL certificate will result in an error due to HSTS (HTTP Strict Transport Security).

If you’ve already added an alias that does not match the site’s SSL configuration, you may use the aliasconverthttp or aliasconverthttps shortcodes.

Make sure the alias you’re going to add is correctly pointing to your server. To find out more about DNS records and how to correctly point your domain to a server, click here.

Shortcode format in the Nodalio Dashboard:

Shortcode result in the Nodalio Dashboard:

Was this article helpful to you? Yes No

How can we help?