View Shtml Link
Once you learn to view SHTML links, you must learn to manage them efficiently. Here are four industry best practices.
Standard .html files are static. The server sends them to the browser exactly as they are written. However, if you want to reuse a header, footer, or navigation menu across 500 pages, updating every single file manually is a nightmare.
SSI allows you to "include" one file inside another. For example:
<!--#include virtual="/includes/header.html" --> view shtml link
When a user requests an .shtml file, the web server reads the file before sending it to the browser. It scans for these special SSI directives, executes them (pulling in the header), and then sends the fully assembled HTML to the user.
test.shtml
<!DOCTYPE html>
<html>
<head><title>SSI Example</title></head>
<body>
<h1>Main content</h1>
<!--#include virtual="footer.html" -->
</body>
</html>
footer.html
<footer>This is the footer – last modified <!--#echo var="LAST_MODIFIED" --></footer>
Place both files in the same server directory, then request test.shtml via HTTP. Once you learn to view SHTML links, you
You can include an SHTML file inside another SHTML file. This is powerful but dangerous. A circular include (File A includes File B which includes File A) will crash the server process. Limit nesting to 3 levels.