How to Create a Subdomain

To create a subdomain:

  1. Navigate to Account Manager --> Subdomain Management.
  2. Click Add Subdomain.
  3. Enter the subdomain name.
  4. Save the changes.

DirectAdmin automatically creates the required directory and DNS records.

Example:

blog.example.com

Subdomain Document Root Options

When creating a subdomain, you can choose different document root options:

  • Standard Subdomain

    Creates a dedicated directory for the subdomain.

    Example:
    blog.example.com

  • Legacy Subdomain

    Uses a directory inside the main website's document root.

    Example directory:
    public_html/blog

    The subdomain is accessed as:
    example.com/blog

  • Custom Path

    Allows you to choose a custom directory anywhere within your hosting account.

    This option is useful when website files already exist in a specific location.

Was this answer helpful? 0 Users Found This Useful (0 Votes)