How to Create a Subdomain
To create a subdomain:
- Navigate to Account Manager --> Subdomain Management.
- Click
Add Subdomain. - Enter the subdomain name.
- 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/blogThe 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.