Forum Moderators: phranque
I am having problems with the virutal include.
This is the html that I use and that works on my paid hosting: <!--#include virtual="/include/menu.htm" -->
But when I look at it at home, I have to remove the / before the include/menu.htm to make it work.
Does anyone have a suggestion how to fix this. I don't want to have to remove all of the /'s to make them work at home and then have to add them back in to upload to the paid hosting server.
Thanks for your help,
RoseMarie
Somewhere in the server configuration, you have told Apache where the files for your web site are located. It is probable that they are not located at the hard drive root directory "c:", but rather somewhere below there.
That line in the config file is what needs to change to make Apache behave as if "/file" is the same as "file".
Jim
<Directory "C:/web/mycustomerwebfolder.com">
Options FollowSymLinks ExecCGI +Includes
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
AddHandler server-parsed .shtml
Order allow,deny
Allow from all
AllowOverride None
</Directory>
I was thinking that maybe I had an extra slash/ behind the mycustomerwebfolder.com but I didn't. Where else should I look?
Thanks for the help,
RoseMarie