Luiza1
asked on
SSI - How to include a page inside another page?
I tried to use the Dreamweaver funtion to add server includes. I want to include one page inside another page that is already using a template. In Dreamweaver the page looks how it supposed to, but in the internet browser the page is empty, meaning the page that was supposed to be included is not there. What am I doing wrong?
This is the part of code that is not working:
<!--#include file="meetings2008.html" -->
This is the part of code that is not working:
<!--#include file="meetings2008.html" -->
<div id="maincontent">
<div id="content">
<!-- InstanceBeginEditable name="Contenu" -->
<h1 class="h1green" >Comités Budgétaires COBU (PE) & ComBud (Conseil) Comptes rendus des réunions</h1>
<!--#include file="meetings2008.html" -->
<!-- InstanceEndEditable -->
</div>
</div>
empty-page.GIF
ASKER
Ok, first one is yes. Now explain me more the second point. On the tutorial I read that you don't have to change your file name into shtml, by using XBitHack on
Where in the page code do I have to add this "XBitHack on" and where do I add the second part:
"So, to add SSI directives to an existing page, rather than having to change the file name, you would just need to make the file executable using chmod:
chmod +x pagename.html"
Can you show me an example?
Where in the page code do I have to add this "XBitHack on" and where do I add the second part:
"So, to add SSI directives to an existing page, rather than having to change the file name, you would just need to make the file executable using chmod:
chmod +x pagename.html"
Can you show me an example?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Ok, just one last question. In all those tutorials I can't make the difference between the normal page (np) and the page I want to include (ip) inside several of those normal pages. On which page, np or ip do I put the code "XBitHack on", on which page the attributes "chmod +x pagename.html" should go and which pages need to be parsed, np or ip?
only pages with the "include" statement, which I think you are referring to as "normal pages", needs to have the xbit hack on.
-have you verified that your server is setup to handle SSI?
-is your file extension shtml, to trigger the server to check for SSI?
see this for more info: http://httpd.apache.org/docs/1.3/howto/ssi.html#configuringyourservertopermitssi