Skip to main content

Map new domain to cPanel sub domain?

Comments

3 comments

  • 24x7server
    Hi,
    My problem is that whenever I type domain.com in a browser it changes the url to domain.net/website2.

    You may have to do URL masking also. Try the below code in the .htaccess.. ------------------- ------------------- RewriteCond %{HTTP_HOST} ^domain.com RewriteRule ^(.*) http://domain.net/website2/$1 [P] ------------------- -------------------
    0
  • Tarounen
    Hi, You may have to do URL masking also. Try the below code in the .htaccess.. ------------------- ------------------- RewriteCond %{HTTP_HOST} ^domain.com RewriteRule ^(.*)
    0
  • cPanelMichael
    i created the subdomain and redirections. website1.domain.net -> domain.net/website1 website2.domain.net -> domain.net/website2

    Hello @Tarounen, I recommend disabling the existing redirects, and instead configuring the document roots of those subdomains to the path you'd like them to load the contents from. You can adjust the document root value under Modify a Subdomain in cPanel >> Subdomains. Thank you.
    0

Please sign in to leave a comment.