Adding Subdomains in Enhance

Create a subdomain as a separate website or as an alias pointing to an existing directory.

Web Hosting Updated 14 March 2023

A subdomain is a prefix added to your main domain - for example shop.example.com or staging.example.com. In Enhance, each subdomain can be set up as its own independent website with its own files, PHP version, and SSL certificate.

Creating a Subdomain Website

  1. Log in to web.teklanhosting.co.uk.
  2. Go to Websites → Add Website.
  3. Enter the full subdomain as the domain name - e.g. shop.example.com.
  4. Select a PHP version and click Create.

Enhance creates a separate directory and environment for the subdomain. It will also attempt to issue an SSL certificate - make sure the subdomain has a DNS A record pointing to your hosting IP before this step.

Adding the DNS Record

If your domain uses TekLan nameservers, add an A record in the client area DNS manager:

Name:  shop
Type:  A
Value: your.hosting.ip

If you manage DNS at an external provider, add the A record there. The subdomain needs to resolve before SSL can be issued.

Using a Subdomain as an Alias

If you want www.example.com to serve the same content as example.com (rather than a separate site), add it as a domain alias:

  1. Open your main website in Enhance.
  2. Go to Settings → Domain Aliases (or Add Alias).
  3. Enter www.example.com and save.

Enhance will serve both domains from the same public_html directory. SSL covers both.

Common Uses for Subdomains

  • www.example.com - canonical www alias
  • staging.example.com - development/testing environment
  • shop.example.com - separate e-commerce section on a different platform
  • api.example.com - API endpoint served by a separate application
  • mail.example.com - webmail or mail server hostname

Wildcard subdomains: If your application needs wildcard subdomain support (e.g. *.example.com), contact support - this requires a wildcard SSL certificate and specific server configuration.