Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Add-on domain redirecting as subdomain

Discussion in 'General Discussion' started by Robotech_Master, Dec 8, 2005.

  1. Robotech_Master

    Robotech_Master Registered

    Joined:
    Nov 17, 2005
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    151
    One of my customers' add-on sites is redirecting oddly. Using "primarydomain" and "secondarydomain" as example names for his primary domain and the add-on domain...

    It's set up as an add-on domain located in a subdirectory--i.e. http://www.primarydomain.com/username/

    With all our other accounts that have add-on domains, typing www.secondarydomain.com will bring up that website with www.secondarydomain.com appearing in the address bar.

    However, with this site, the addressbar changes to http://username.primarydomain.com as soon as the page loads, and that just won't do.

    I think this may have something to do with how he had originally managed to set up this add-on domain, with it redirecting to www.primarydomain.com/secondaryindex.html instead of a subdirectory as it should. I removed the listing and relisted it as a subdirectory, but it's still doing this, so maybe there's some setting somewhere that I need to clear manually?

    Can anyone advise me what I should do?
     
    #1 Robotech_Master, Dec 8, 2005
    Last edited: Dec 8, 2005
  2. dalem

    dalem Well-Known Member
    PartnerNOC

    Joined:
    Oct 24, 2003
    Messages:
    2,742
    Likes Received:
    77
    Trophy Points:
    353
    Location:
    SLC
    cPanel Access Level:
    DataCenter Provider
    edit your .htaccess file
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice