February 21

How To Edit .htaccess So That SSI Include Code Will Run

0  comments

If you have tried adding in SSI include codes into your HTML files, but find that it doesn’t work, the problem may be that you might not have enabled SSI yet.

The easier way to do so is to edit your .htaccess file to have these lines of code:

AddHandler server-parsed .html
Options Indexes FollowSymLinks Includes

By setting this, you are telling your server to parse all HTML files. There’s a drawback though — ALL HTML files are parsed — even if they don’t have SSI or include code in them. So, there’s a bit of an overhead. Otherwise, this is fine.


Other posts about scaling up businesses

I Only Own One Pair Of Shoes

Leave a Reply

Your email address will not be published. Required fields are marked

{"email":"Email address invalid","url":"Website address invalid","required":"Required field missing"}
free playbook

Get Your Free 5E Playbook

My 5E playbook is now available for a limited time!

__CONFIG_colors_palette__{"active_palette":0,"config":{"colors":{"62516":{"name":"Main Accent","parent":-1}},"gradients":[]},"palettes":[{"name":"Default Palette","value":{"colors":{"62516":{"val":"var(--tcb-skin-color-0)"}},"gradients":[]}}]}__CONFIG_colors_palette__
Get Your Playbook