SSI trouble

Status
Not open for further replies.

nagualju

New Member
Messages
2
Reaction score
0
Points
1
I'm having trouble getting SSI to work. So far I've just made a small test index page, with an include to a shtml file. The content of the index.html is...

<html>
<head>
</head>
<body>
<h1>Hello World!</h1>
<br>
<!--#include file="footer.shtml" -->
</body>
</html>

and the content of the footer.shtml file is...
this is the footer

Both files are in the same directory. Is SSI enable through the free hosting or did I do something wrong here? Thanks :)
 

leafypiggy

Manager of Pens and Office Supplies
Staff member
Messages
3,819
Reaction score
163
Points
63
SSI is working fine on the servers.

http://neil-level.x10.mx/ssi/

Your problem is twofold:

  1. You're using SSI. It's an outdated technology, and is replaced by literally every other programming language ever.
  2. Your index file must be .shtml, not .html
 

nagualju

New Member
Messages
2
Reaction score
0
Points
1
I didn't realize SSI wasn't in use anymore, it's been about a decade since I did any website creation stuff. What's in vogue now for navigation menus?
 

essellar

Community Advocate
Community Support
Messages
3,295
Reaction score
227
Points
63
These days, it's probably "normal" to use a PHP include() or require() on most shared hosting platforms. That's mostly premised on the assumption that your menu would be dynamically generated (and that headers and footers and so on would be edited with something that's supposed to be WYSIWYG-ish, which is sort of ridiculous on the web). There is absolutely nothing wrong with SSI (other than the fact that it's a more appropriate technology for a site based on static files - and if you can manage static files, they are a far more performant choice than a dynamically-generated site, especially if you take advantage of content delivery networks like Cloudflare). It's certainly not a "problem".
 

romancee

New Member
Messages
1
Reaction score
0
Points
1
I'm having SSI trouble as well. I have the following line in an .shtml file:
<p id="table"><!--#include virtual="cgi-bin/latestbooks.cgi" --></p>

I get [an error occurred while processing this directive]

I changed my file permissions to add execute. I appreciate any help.
 
Status
Not open for further replies.
Top