Forum Moderators: phranque
Thank you for your help.
Chris
<!--#include file="headeren.html" -->
This is when my header file is on the same directory as the page I want to load. The structure I would like to have since it is a multi language site is to have a directory exclusively for headers and footers and a different one for each language and the way I'd call the header file would be like this:
<!--#include file="../headers/headeren.html" -->
This call displays fine on Dreamweaver aplying the Server Side Include on the Insert Menu, but when I try to see it online it wont display and gives me this message on top of the page instead of my header:
[an error occurred while processing this directive]
Thank in advance.
Chris
Also, the mod_include documentation [httpd.apache.org] recommends using "include virtual" instead of "include file":
Include file
The value is a path relative to the directory containing the current document being parsed. It cannot contain ../, nor can it be an absolute path. Therefore, you cannot include files that are outside of the document root, or above the current document in the directory structure. The virtual attribute should always be used in preference to this one.
I would recommend:
<!--#include virtual="/headers/headeren.html" -->
If DW does not work with that approach, then it will not work using .htaccess to "correct" the paths, either; You'll either need to install a local server for testing, or use the virtual relative ("../") paths.
Jim
Is there a way to change those relative paths when you call the file with include virtual so that the images and other interactive content is displayed?
Thanks
Chris