.htaccess条件 - 依赖于文件类型的操作

时间:2011-01-01 06:15:10

标签: php html .htaccess

我所拥有的是一条规则:

RewriteCond %{REQUEST_FILENAME}.php !abc.php  
RewriteRule ^(.*)$ some.php [L]

添加条件的必要条件.html文件类型也会在该规则下运行吗?

1 个答案:

答案 0 :(得分:1)

已经很晚了所以我可能错了,但这应该可以解决问题:

RewriteCond %{REQUEST_FILENAME} !abc\.php 
RewriteCond %{REQUEST_FILENAME} ^(.*\.html)$  
RewriteRule ^(.*)$ some.php [L]
相关问题