Forum Moderators: phranque
<!--#include file="myfile.html"--> or
<!--#include file="../../myfile.html"-->
was working perfect on Windows hosting, But on Linux I have a problem with <!--#include file="../../myfile.html"--> it does not include file from different level (but it incdudes file on same leval).
I’m not sure:
1)did I specify something wrong for Linux like (../)
2)should I make some changes to .htaccess
3)should my hosting to do something on their side.
Any help would be really appreciated
If it is including the file on the same "level" or directory then it sounds as if your configuration is correct. However, you are right about the relative paths, they are a no-no. The value in the file attribute is a path relative to the directory containing the current document being parsed. It cannot contain ../, nor can it be an absolute path.
mod_include [httpd.apache.org] is what you want to review.