Addon domain changes to subdomain name when trailing slash is not used.

Symptom: When accessing an addon domain without using a trailing slash (http://www.addon.com), the address bar in the browser changes to the subdomain on which the addon domain is based (http://sub.masterdomain.com).

Cause: Canonical name reference to master domain.

Resolution: Shared hosting clients should open a ticket so the staff can insert the appropriate entry. Dedicated and colo clients should follow the steps below:

1. Find the apache configuration entry for the addon domain.
2. Insert the following directive within the entry (note: if using the open_basedir function, this entry should be outside the  IfModule portion):

UseCanonicalName Off

3. Save the configuration file.
4. Restart apache.

  • 1 Users Found This Useful
Was this answer helpful?

Related Articles

Addon Domains

An addon domain allows you to add another domain to your existing account and direct that domain...

Custom error documents in addon domain .htaccess files not working

Symptom: ErrorDocument directives in .htaccess files under addon domains do not function or...

How do I set up additional domains on my account? (DirectAdmin)

To create additional domains on your account, log in to the control panel, either directly at...