Apache重定向在FilesMatch指令中

时间:2012-09-11 11:18:06

标签: apache redirect

在我的httpd-vhosts.conf文件中,我有30个重写规则。我希望.css类型的请求不应该通过那30个重写规则。

我用过

<filesMatch "!\.(css)$">
        ReWriteRule ^/welcome1.html$ /retail-en_us/home.page [P,L,QSA]
  ReWriteRule ^/welcome3.html$ /retail-en_us/home.page [P,L,QSA]
ReWriteRule ^/welcome4.html$ /retail-en_us/home.page [P,L,QSA]
ReWriteRule ^/whychoose.html$ /retail-en_us/whytdameritrade.page [P,L,QSA]
ReWriteRule ^/portfolioac/overview.html$ /retail-en_us/account-types/standard.page [P,L,QSA]
ReWriteRule ^/trade/overview.html$ /retail-en_us/investment-products.page [P,L,QSA]
ReWriteRule ^/planningforretirement.html$ /retail-en_us/retirement-planning/retirement-suite.page [P,L,QSA]
ReWriteRule ^/tradingtools/overview.html$ /retail-en_us/tools-and-platforms.page [P,L,QSA]
ReWriteRule ^/tradingtools/browsealltools.html$ /retail-en_us/tools-and-platforms/tools-and-calculators.page [P,L,QSA]
ReWriteRule ^/tradingtools/advanced.html$ /retail-en_us/tools-and-platforms/thinkorswim/features.page [P,L,QSA]
ReWriteRule ^/tradingtools/charting.html$ /retail-en_us/tools-and-platforms/trade-architect/features.page [P,L,QSA]

...... .... ..     

这不起作用,就好像我正在访问其中的任何重写规则..,它无法访问。如果有任何其他方法限制.css访问那些重写规则

,请提供帮助

0 个答案:

没有答案
相关问题