2017-08-09 39 views

回答

1

這是替補的組合和SSI包括,但它的工作原理

AddOutputFilterByType SUBSTITUTE text/html             
Substitute 's/magical-string-here/<!--#config timefmt="%s" --><!--#echo var="DATE_LOCAL" -->/' 

Options +Includes                    
AddType text/html .php  # or what have you                  
AddOutputFilterByType INCLUDES text/html              
+0

我是一個帶有apache配置的新手。我需要一些逃生字符嗎?因爲如果我留下單引號,它什麼也不做,如果我刪除它,我有一個服務器錯誤。僅用於替代 – Myoch

+0

我的意思是用空字符串替代時間戳 – Myoch

+0

您使用的是哪個apache版本?你有服務器端包含模塊嗎?確保你在'AddType text/html .php'中添加了正確的文件類型 – akond

相關問題