Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我了解到 shtml 是带有 ssi 的 html,但我想知道即使使用 apache 的 httpd.conf 中的 html 文件,我也可以设置 ssi:
AddType text/html .shtml .html AddOutputFilter INCLUDES .shtml .html
如果这样做,html 文件和 shtml 是否相同?
感谢您的回答!
SHTML 是一个文件扩展名,它让 Web 服务器知道文件应该被处理为使用服务器端包含 (SSI)。
看起来 SHTML = Server Side include HTML (SSI),这只是说服务器可以在参考点动态注入代码的一种奇特方式。
SHTML 是服务器端脚本。HTML 是用于定义网页的语言。它看起来像文本,包含有关 Web 浏览器应如何显示页面的说明
当您想要拥有静态内容时,请使用静态 HTML。如果您想做简单的事情,例如包含,请使用 SHTML。