In your Apache configuration file ( httpd.conf or apache2.conf ), you need to ensure the module for Server Side Includes is loaded. Find and uncomment the following line (or add it if it's missing):
To view and edit SHTML files effectively, you need tools that can handle both the local code editing and the server-side environment. 1. Premium Code Editors (The Professional Standard)
If you need to view, understand, or edit the inner workings of an .shtml file—especially the SSI code—a good text or code editor is indispensable. These tools provide syntax highlighting, making it easier to distinguish between standard HTML tags and SSI directives.
| Task | Recommended Tool | |------|------------------| | Local development | Apache with SSI + error logging | | Syntax highlighting | VS Code + “SSI” or “Apache Conf” extensions | | Validate includes | Check server logs for “SSI missing file” | | Preview final output | Use “View Source” in browser after serving via localhost |
Options +Includes AddType text/html .shtml AddOutputFilter INCLUDES .shtml Use code with caution. For Nginx Servers
: Get the installer for your operating system from the official Apache Friends website.
Here is a comprehensive Feature Specification document for this functionality.
If you’ve been building websites for a while, you’ve probably stumbled across a file ending in and wondered, "What’s the difference? And should I be using this?"
<!--#command parameter="value" -->
Displays server variables like the current date, time, or user IP.
If you double-click an SHTML file on your desktop, your browser will open it, but the Server Side Includes will be invisible or broken. To view the fully assembled page, you must run a local server environment.
A quick plugin option. While it excels at standard HTML, you may need additional configuration or a local backend tool to parse advanced SSI tags. Step-by-Step: How to View SHTML Files Correctly