Paul
Paul

Reputation: 1966

.htaccess condition - action dependent on filetype

What I have is a rule:

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

what's necessary to add condition where .html filetype will also run under that rule?

Upvotes: 0

Views: 143

Answers (1)

Jesse Bunch
Jesse Bunch

Reputation: 6679

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]

Upvotes: 1

Related Questions