/    Sign up×
Community /Pin to ProfileBookmark

SSI Includes Virtual Problem

Whatup!

I would consider myself knowledgeable enough in the use of includes files in an html document but I am stumped on this problem. I’ve done it before at my previous company and understand the value of only having to change one file to affect a header or a footer. BUT! Recently I was optimizing this site: [url]http://www.hawksontherocks.com/indexDIVtestNAV.shtml[/url]

And wasn’t able to get this code: <!–#include virtual=”/includes/footer.inc” –> to work in an HTML file. I had to change it to and .shtml (as you can see in the link provided) for it to work. What’s up with that? I called my host and they said HTML files should work fine. Do I have to use an .shtml file? How do other sites do it?

Little advice!

Thanks.

to post a comment
HTML

3 Comments(s)

Copy linkTweet thisAlerts:
@KDLAApr 23.2008 — .HTML isn't a page format for server-side interaction. It is a "static" file type. When you added ".SHTML" to the file type, you changed the configuration to allow server-side interaction with the page content.

Reference: http://bignosebird.com/ssi.shtml

KDLA
Copy linkTweet thisAlerts:
@TheBearMayApr 23.2008 — If you really, really want to have all .html files processed by the server you'll need to add something along the lines of:

AddHandler server-parsed .html

to your .htaccess or httpd.conf file.
Copy linkTweet thisAlerts:
@bdavey311authorApr 23.2008 — Awesome, Thanks guys - I believe the .htaccess was what I was looking for.
×

Success!

Help @bdavey311 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 4.29,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...