cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Go to solution

When I buy a new domain and add it to my C-Panel, it turns me into the main domain

When I buy a new domain and add it to my C-Panel, it turns me into the main domain, for example 

I bought (new-domain.com), and i add it to cpanel via Addon Domain option, when i open new-domain.com from my browser it didn't work , but when i open https://main-domain.com/new-domain.com its work !!!!!! i need it a separate domain, when i chatting with support team they told me its a Database error but i don't understand

and this my htaccess file

<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
    Options -MultiViews -Indexes
</IfModule>

RewriteEngine On

# Handle Authorization Header


RewriteCond %{SERVER_PORT} 80 
RewriteRule ^(.*)$ https://alsalamtdm.com/$1 [R,L]

# Redirect Trailing Slashes If Not A Folder...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} (.+)/$
RewriteRule ^ %1 [L,R=301]

# Handle Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
</IfModule>
1 REPLY 1
Super User III Super User III
Super User III
Solution

Re: When I buy a new domain and add it to my C-Panel, it turns me into the main domain

Note that a Deluxe or higher hosting plan is needed for multiple websites.  If your plan qualifies you can select the appropriate folder for an addon domain following the steps of this article.

https://www.godaddy.com/help/change-a-secondary-domains-root-folder-in-cpanel-hosting-16170