One common files folder to be use in multiple addon domains?

Discussion in 'Site & Server Administration' started by candyoff, May 10, 2007.

  1. #1
    Hi !

    I am in a shared hosting account in HostGator.com which allow me to add addon domains
    The files of my main domain are situated in /public_html
    e.g www.mainsite.com in /public_html/

    while addon domains are in /public_html/xxxxx/
    e.g www.sitea.com/index.htm in /public_html/sitea/index.htm

    By typing
    sitea.mainsite.com is same as www.sitea.com
    www.mainsite.com/sitea/ is same as www.sitea.com

    (Probably you guys already familiar with the structure :)

    Anyway, there are a few images that I will need to use for
    all the domains. Currently I will need to upload the images multiple times to every folders.
    Is it possible for me to put all the common images in a folder e.g /public_html/common/
    So that I can use it in all of others domains
    I know i can use img src="http://www.mainsite.com/common/image1.jpg" in www.sitea.com.
    But visitor will see that I am loading a image from mainsite.com instead of sitea.com.
    Wish to know is there a way to use a image from a common folder, but still showing visitor the image is from the same domain.

    Do tell me if you need any clarification.
    Thanks

    Regards
     
    candyoff, May 10, 2007 IP
  2. Juan Pablo Olivera

    Juan Pablo Olivera Peon

    Messages:
    53
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Did you try something like the following?

    img src="../common/image1.jpg"


    Good luck :)
     
    Juan Pablo Olivera, May 10, 2007 IP