Idontwantspam Posted June 2, 2007 Posted June 2, 2007 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?
ripken204 Posted June 2, 2007 Posted June 2, 2007 i dont beleive you can do that. i think SSI will only allow you do include a file that is directly on the server, meaning u cant use http..
ripken204 Posted June 2, 2007 Posted June 2, 2007 again im not sure. but u can test to try to include google.com from what i remember it wont work. not 100% sure tho.why dont u want to do /dir
Idontwantspam Posted June 2, 2007 Author Posted June 2, 2007 (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 June 2, 2007 by Idontwantspam
ripken204 Posted June 3, 2007 Posted June 3, 2007 press f5 to fix the linksso ur trying to go from subdir to maindir? just use:../footer.html
Idontwantspam Posted June 3, 2007 Author Posted June 3, 2007 No! Not a subdirectory. A subdomain. Like this:File is in http://www.example.comI want to include that ^ file in a file that is at http://something.example.com. Not www.example.com/something, but http://something.example.com. I don't think it'll work. And reloading the page doesn't make the links go away.
ripken204 Posted June 3, 2007 Posted June 3, 2007 well arnt subdomains the same as subdirectories? they way they are displayed in ftp mode at least. do you just want to preserve the url name?
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now