Addon domain displays main domain in URL

AutoPilot

Registered
Aug 24, 2018
1
0
1
Home
cPanel Access Level
Website Owner
Hello i have a problem. lets say my primary domain is example.com and i add addon domain test.com BUT when i visit test.com it will show as example.com/test.com does anyone know how to fix it please?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,228
463
Hello @AutoPilot,

This often happens when you are using custom Mod_Rewrite rules in the .htaccess file of the directory above the addon domain's document root (e.g. /home/username/public_html/). You should ensure to exclude the addon domain name from your custom rewrite rules using the example in a third-party URL like the one below:

.htaccess mod_rewrite - how to exclude addon domain from rewrite rule?

Thank you.
 
  • Like
Reactions: Metro2