• GoDaddy Community
  • Websites + Marketing | Website Builders
  • Websites + Marketing | Website Builders

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

    Secondary Domain appearing under primary?

    When I uploaded my secondary site to it's defined folder under public HTML and tested it acts as a redirect under my primary domain. 

     

    Example:

    I type http://www.secondary.com it resolves and sends me to https://primary.com/secondary.com/

     

    I have wrestled with it for a while and have come the conclusion I must be missing something right in front of me.

     

    Any ideas?

    Thanks everyone.

    2 REPLIES 2
    Rockstar I Rockstar I
    Rockstar I
    Solution

    Re: Secondary Domain appearing under primary?

    Hi @CCSpencer,

     

    Is this a wordpress-based site?  If so, you will need to look into "domain mapping".  It is a key concept that is often overlooked when trying to use folders as installations on a cPanel.

     

    If you site is html/php, you will need to make sure that all of your access at the root level is defined in the .htaccess file.  By assigning a domain to a folder you have to also manage .htaccess within that folder.  I'm not an expert in the exact details, but I do know there are some good threads and @JHasselbring wrote an outstanding article in the GoDaddy Garage that addresses using multiple domains on a single cPanel server.  Read this as a starting point!!!

     

    Hope this helps,

    James

    Not Just Pretty Sites, Pretty Doggone Smart Sites

    Re: Secondary Domain appearing under primary?

    Thank you! I missed defining in the .htaccess file.

    Life saver!