需要在Apache FilesMatch中转义字符

时间:2018-10-04 12:16:12

标签: regex apache

在这种情况下应该转义点字符:

<FilesMatch "^/(app.csv|translation.csv*)$">
   FileETag None
   Header unset ETag
   Header set Cache-Control "max-age=0, no-cache, no-store, must-revalidate"
   Header set Pragma "no-cache"
   Header set Expires "Wed, 11 Jan 1984 05:00:00 GMT"
</FilesMatch>

例如:

<FilesMatch "^/(app\.csv|translation\.csv*)$">

还是Apache能够理解这是文件扩展名?

0 个答案:

没有答案