I'm using
ASP, but I think my problem can be solved with
PHP, so feel free to move this moderators.
Okay, down to business. I am currently using the command
<!--#include virtual="navbar.inc" --> to insert my navigation into my page. That works great on the home page, but the problem lies in how the file must be called. The include virtual command requires that the file navbar.inc be called using a relative URL.
Example
If the site using the command is... "www.mydomain.com"
...then in order to call... "www.mydomain.com/navbar.inc"
...I input...
<!--#include virtual="navbar.inc" -->
...at "www.mydomain.com"
BUT!!! (and here's my question) what if I want to divide my site up onto folders as most web designers do.
Now the site using the command is...
"www.mydomain.com/chocolate_rules"
...but I want to use the same navbar.inc file at...
"www.mydomain.com/navbar.inc"
Now, inputting <!--#include virtual="navbar.inc" --> yields the file at...
"www.mydomain.com/chocolate_rules/navbar.inc"
...which is non-existant
ASP is picky and won't allow an absolute URL, it must be relative. I want more than one folder, so linking up from the home page works only on the home page and in one folder. Can someone tell me how to take "mydomain.com/chocolate_rules" and include the
xhtml at "mydomain.com/navbar.inc"
Thanks!