mod_rewrite mod_pages -pages -peed rewriteCond
-
29-09-2019 - |
题
我的.htaccess文件中有以下内容:
# Allow any files or directories that exist to be displayed directly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# Rewrite all other URLs to index.php/URL
RewriteRule .* index.php/$0 [PT]
服务器管理员已经安装了Google mod_pagespeed,当然,由于该文件夹不存在,因此每次尝试访问时都会记录一个错误 /mod_pagespeed_beacon
(并且没有记录统计数据)。
什么 RewriteCond
我需要添加(在哪里) /mod_pagespeed_beacon
将工作?
解决方案
其他提示
找到了我问题的答案。只需添加以下内容:
RewriteCond %{REQUEST_URI} !^/mod_pagespeed_beacon
我认为在重写条件列表中的何处并不重要。
- 编辑
我还需要以下内容来访问统计信息:
RewriteCond %{REQUEST_URI} !^/mod_pagespeed_statistics
我有vbulletin 4套件 + vbseo发现。
# mod_pagespeed
RewriteCond %{REQUEST_URI} !(mod_pagespeed_statistics|mod_pagespeed_beacon) [NC]
将其放在这条线上
RewriteRule ^(.+)$ vbseo.php [L,QSA]
不隶属于 StackOverflow