如何将字符串替换为mod_substitute apache中的当前时间戳?

时间:2017-08-09 15:28:41

标签: apache .htaccess http httpserver

我想用当前时间戳替换字符串,以毫秒为单位,如

Error in .calcTest(x[1:5], fun, na.rm, forcefun, forceapply) : 
cannot use this function

如何在 .htaccess 文件中使用 mod_substitute.c 进行操作?

1 个答案:

答案 0 :(得分: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