优先/服务器状态前面另一个.htaccess在apache2中重写规则

有可能优先/服务器状态前面的另一个重写规则? 例如下一个不会让/ server-status工作:

RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-s RewriteCond %{REQUEST_FILENAME} !-l RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_URI} !\. RewriteRule ^.*$ index.php [NC,L] 

我必须把这个添加到.htaccess中才不会进入到php项目中:

 RewriteRule ^server-status$ - [L] 

与谷歌mod_pagespeed,他们的统计页面工作,而不会将其添加到项目.htaccess:/ mod_pagespeed_statistics

https://developers.google.com/speed/docs/mod_pagespeed/configuration


我的mod_status.conf:

 <IfModule mod_status.c> <Location /server-status> SetHandler server-status Order Deny,Allow Deny from all Allow from 127.0.0.1 # My allowed ips here </Location> </IfModule>