SSI Includes from a subdomain

Discussion in 'Site & Server Administration' started by crizatu, Jan 2, 2006.

  1. #1
    Hello,
    I would like to find out how could I include file http:/www.test.com/test.html from a subdomain sub.test.com. I have tried "include file" and "include virtual" but it doesn't works. Is there any way to use relatice links with subdomains ?
     
    crizatu, Jan 2, 2006 IP
  2. fsmedia

    fsmedia Prominent Member

    Messages:
    5,163
    Likes Received:
    262
    Best Answers:
    0
    Trophy Points:
    390
    #2
    subdomains are normally treated as a completely separate entity from the domain, so you would need to use an absolute path for the include.
     
    fsmedia, Jan 2, 2006 IP
  3. crizatu

    crizatu Well-Known Member

    Messages:
    465
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    135
    #3
    The problem is that SSI includes don't work with full absolute path, so I doesn't work if I say <!--#include virtual="http://www.test.com/test.html" -->
     
    crizatu, Jan 2, 2006 IP