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 Domains Showing Wrong Files

Discussion in 'General Discussion' started by JackDeRips, Feb 17, 2013.

  1. JackDeRips

    JackDeRips Member

    Joined:
    Jan 5, 2013
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    I currently have two websites on one server running cPanel & WHM.
    The first site has its files placed on public_html but the other site has the files placed on public_html/secondsite/.

    Now the problem is that the second site is for some reason grabbing files from the main site.
    For example, if I place a logo on the second site called "logo.png" and there is a logo on the main site called "logo.png" then the second site will display the main sites logo instead of its own.

    This is really strange, does anyone know how to solve this?
     
  2. Greenhost

    Greenhost Well-Known Member

    Joined:
    Jan 22, 2013
    Messages:
    92
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    It seems you addressing is wrong, have you ever check it in your application?
    In other hand, check your second site "Document Root" on Domains=>Addon Domains, it must be "public_html/secondsite" if it likes the following picture you must correct it.

    addon.png

    Cheers
     
    #2 Greenhost, Feb 17, 2013
    Last edited: Feb 17, 2013
  3. JackDeRips

    JackDeRips Member

    Joined:
    Jan 5, 2013
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    I checked that and it's saying "public_html/secondsite" but it's still showing things from "public_html".
    Any other ideas?

    Update: Could the .htaccess file possibly be messing things up?
    Update (2): Checked the .htaccess file, it's not causing it.
     
    #3 JackDeRips, Feb 17, 2013
    Last edited: Feb 17, 2013
Loading...

Share This Page