在我的 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]
……………………
这不起作用,就好像我正在访问 this .. 中的任何重写规则一样,它是不可访问的。如果有任何其他方式限制 .css 访问这些重写规则,请提供帮助