Can’t have your Server Side Include (SSI) code working on your web server? In most of the case, such problem is cause by improper setting on your Apache handlers.
Simple steps to fix your SSI function
Now, to solve the problem:
- Login to your cPanel account.
- Click on the icon Apache Handler.
- Check if the desired file extension is included in the server-parse handler.
- If haven’t, add the desired file extension, and it should solve the problems.
- Re-visit your website and press reload, the SSI function should be working fine now.
Click to get into Apache Handlers setting.
Check if your file extension is included in the server-parsed handler or not.
Side Note: What does Apache do?
Apache handlers allow you to control what Apache will do with certain file types.
When Apache sees a file, it has an action built in for that file type, and will perform that action. If you wish Apache to do a different action, you will need to make a handler to tell Apache to perform that action. For example, if you use a file type that requires a special service to run it, such as a file with server side includes that is not named with a .shtml extension, you need to tell Apache to treat these files differently.