The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Addon domain problems.

Discussion in 'General Discussion' started by xdefiance, Nov 2, 2009.

  1. xdefiance

    xdefiance Registered

    Joined:
    Nov 2, 2009
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Okay. I set up my addon domain and the directory of the files.

    but when I type in www.addondomain.com it redirects automatically to www.mysite.com

    I want to organize my files since I intend on hosting 2 website under one cpanel account.

    currently under public_html/ I have all the files for my website.

    Also i have a folder

    public_html/addondomain

    I have uploaded the addon domain files to that folder but it still automatically redirects to my main site.

    Its bugging me been at it for 30 minutes now. Help please!

    Thanks :confused: :)
     
  2. thewebhostingdi

    thewebhostingdi Well-Known Member

    Joined:
    Jan 10, 2008
    Messages:
    141
    Likes Received:
    0
    Trophy Points:
    16
    Please make sure that there is not redirect rule set in your .htaccess file.
     
  3. linux7802

    linux7802 Well-Known Member

    Joined:
    Dec 14, 2007
    Messages:
    232
    Likes Received:
    1
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    Soultion

    Basically addon domain also having its own document root path due to that I would like to recommend you please check the document root path is set correctly for your add domain or not? please contact your domain hosting provider......
     
  4. InstaCarma_Tech

    InstaCarma_Tech Well-Known Member

    Joined:
    Apr 22, 2009
    Messages:
    228
    Likes Received:
    1
    Trophy Points:
    18
    This could be a result of a mis-configuration, incorrect doc root or some re-write rules. Try recreating the add-on. If the issue persists then contact your host.
     
  5. cPanelDon

    cPanelDon cPanel Quality Assurance Analyst
    Staff Member

    Joined:
    Nov 5, 2008
    Messages:
    2,557
    Likes Received:
    7
    Trophy Points:
    38
    Location:
    Houston, Texas, U.S.A.
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    In addition to the above measure, I would also check the file named ".htaccess" residing in the directory "public_html" -- try temporarily renaming the ".htaccess" file to ".htaccess_old" so that it not used. The ".htaccess" file may contain a redirect or mod_rewrite entries that are causing the undesired behavior. Depending upon the specific redirect configuration it may be necessary to also clear your browse cache, then close and re-open your browser after disabling the ".htaccess" file(s).

    It is possible to rename the file via SSH, FTP, or cPanel File Manager. Here is an example via SSH (where username is the cPanel account username):
    Code:
    # mv -v /home/username/public_html/.htaccess /home/username/public_html/.htaccess_old
    When ready, the following could be used to revert the file name change:
    Code:
    # mv -v /home/username/public_html/.htaccess_old /home/username/public_html/.htaccess
    Related documentation (for cPanel File Manager):
    FileManager < AllDocumentation/CpanelDocs < TWiki
    LegacyFilemanager < AllDocumentation/CpanelDocs < TWiki
     
Loading...

Share This Page