5 ms·
SSI is usually available out of the box, or at worst an .htaccess away.
by toyg 13y ago
SSI is usually available out of the box, or at worst an .htaccess away.
- X-Istence 13y agonginx certainly doesn't use .htaccess ...
- btgeekboy 13y agoOr, on your basic shared hosting, you'll usually find PHP too. While I'm not advocating a ton of calls to do all sorts of things with databases and who knows what else, a set of PHP includes (and maybe a few additional helper functions) would be similarly useful.
- NateDad 13y agoThe thing of it is, the next person that looks at the site might not know PHP... then what? You must know HTML to be able to work with a webpage. Anything else is just a further restriction on who can edit the site. Most small businesses get their websites managed by whoever happens to come along with a tiny bit of knowledge. The tiny bit of copy and paste you might need to do to avoid non-HTML is a perfectly good tradeoff to keep the barrier of entry as low as possible for the next poor schmuck who has to go in there and twiddle with things.
- ahallock 13y agoA PHP include takes about 1 minute to explain. You don't even need to know PHP, just the include syntax.
- stevekemp 13y agoThe downside there is performance overhead. If a user requests "/foo/bar/baz" you have to allow your webserver to stat "/foo/bar/baz/.htaccess", "/foo/bar/.htaccess", and "/foo/.htaccess" which can be a significant performance hit. SSIs have similar issues, parsing all files on the off-chance there is some magic that will be required.