I’m having a problem including a file from my main directory in a subdomain. File header.html is located in my main directory and is used by all the pages at that level. I also have a subdirectory one level below my main directory. Pages in this subdirectory should also include the header.html file.
For those pages, I’ve used:
This works fine if I access the page as:
However, for convenience, the subdirectory is also mapped as a subdomain. If I access the page as:
instead of including the file, I get a nice “[an error occurred while processing this directive].”
How can I work around this?