Jump to content
MDDHosting Forums

Getting SSI (server-side include) files working in Apache and HTML


ArtJervis

Recommended Posts

Apache does not seem to be processing "includes" in my HTML files without configuring the .htaccess file. And I can seem to get .htaccess configured properly.

 

For example, I want to include a copyright footer at the bottom of my HTML pages using this command:

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

 

It only appears when I modify the .htaccess file to include:

 

Options +Includes

AddHandler server-parsed .html

 

But unfortunately, the TOP of the HTML page then starts including this statement:

[an error occurred while processing this directive]

 

This should be SUCH a SIMPLE thing to do, but I've already spent hours hacking.

 

Thanks ahead for your help!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...