The problem is caused by cpanel bug/feature
You know, when you set up an addon domain in your control panel, cpanel creates an auxilary sub domain, its name is the same as corresponding folder name. And this subdomain name is more important for web server than addon domain name.
Here is example from httpd.conf (web server configuration file):
CODE
ServerName subdomain.maindomain.com
ServerAlias www.subdomain.maindomain.com
ServerAlias addondomain.com www.addondomain.com
DocumentRoot /home/username/public_html/subdomain
When you open
http://addondomain.com so there is no problems. But when you open
http://addondomain.com/something link is replaced to
http://maindomain.com/subdomainSo to fix this problem you need to use mod_rewrite or http configuration must be replaced with the following:
CODE
ServerName addondomain.com
ServerAlias www.subdomain.maindomain.com subdomain.maindomain.com
ServerAlias www.addondomain.com
DocumentRoot /home/username/public_html/subdomain
As you do not have access to change web server configuration, you need to request us to do it through perl desk or email.