1

In htaccess file, RewriteCond for one file bla.php can write so right?

 RewriteCond %{REQUEST_FILENAME} !bla.php

Question: how can write RewriteCond for multiple files? for example for 3 files: bla.php, some_bla.php,some_other_bla.php ?

Oto Shavadze
  • 113
  • 4

1 Answers1

1

In mod_rewrite you can chain more conditions - by default they are connected by logical AND but you can change in with rewritecond's switch OR like this:

RewriteCond %{REQUEST_FILENAME} !bla.php [OR]
RewriteCond %{REQUEST_FILENAME} !somebla.php
Kamil Šrot
  • 333
  • 1
  • 3
  • 10