.htaccess condition - action dependent on filetype
What I have is a rule:
RewriteCond %{REQUEST_FILENAME}.php !abc.php
RewriteRule ^(.*)$ some.php [L]
开发者_JAVA技巧
what's necessary to add condition where .html filetype will also run under that rule?
It's late so I may be wrong, but this should do the trick:
RewriteCond %{REQUEST_FILENAME} !abc\.php
RewriteCond %{REQUEST_FILENAME} ^(.*\.html)$
RewriteRule ^(.*)$ some.php [L]
精彩评论