Jump to content

Recommended Posts

Posted

Is there any way to use SSI includes that will point to an absolute path?

I know one can use something like

<!--#include virtual="/somedirectory/somefile.html" -->

but I want to do something like

<!--#include something="http://example.com/includes/included.html" -->

with an absolute path beginning with HTTP:// This doesn't seem to be working for me. I have to use html with ssi includes here, PHP and require() aren't an option. Any idea anyone?


Posted (edited)

Apparently it's not possible. Here's what I'm trying to do: there's a domain, let's call it example.com. In the root directory and some of the sub directories, there are files that I want to include a common footer and header into using SSI includes. I also want to include those files into some pages inside a subdomain, http://subdomain.example.com. So, I was going to have the files to be included reside in the root directory, and then have the files in the subdomain include the files at http://example.com. But apparently that's not possible. So I guess I'll just set it up separately for the different subdomain.

WTF? For some reason it keeps trying to turn those into links. I don't want that, but I can't get rid of them for some reason.

Edited by Idontwantspam

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...