Forum Moderators: open

Message Too Old, No Replies

includes

         

tonynoriega

5:49 pm on Jan 12, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



can a basic HTML page include another basic HTML file?

i cant get this to work, and im almost sure my server supports SSI

<!--#include virutal="menu.html"-->

which i tried in my index.html, but is not working..

i also tried

<!--#include file="menu.html"-->

my menu.html page is only:

<div id="menu-wrap">
<ul id="menu">
<li><a href="#">home</a></li>
<li><a href="#">register</a></li>
<li><a href="#">routes</a></li>
<li><a href="#">sponsors</a></li>
<li><a href="#">support</a></li>
<li><a href="#">volunteers</a></li>
</ul>

</div>

am i missing something?

LifeinAsia

6:02 pm on Jan 12, 2009 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



In your server configuration, you need to configure the document extension to use to parse. Most people use .shtml, but you can use whatever you want. You could specify it to parse all .html files, but that will add some overhead.

As for the specifics on how to configure, it will depend on your web server.

tonynoriega

6:02 pm on Jan 12, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



ok, that makes sense.

thanks