1

これは、RESTフレームワークに使用している単純なhtaccessファイルです。

/lib/MyFile.php1つのファイルを書き換えから除外したいだけです。(すべてのリクエストはindex.phpを経由するため、BasicAuthが必要です)

     RewriteCond %{REQUEST_URI} !^/(static_files/.*)$
     RewriteCond %{REQUEST_URI} !^/(lib/MyFile.php)$ // this is not working
     RewriteCond %{REQUEST_FILENAME} !-f

     RewriteRule ^(.*)$ index.php [QSA,L]

ファイルの完全なURLは次のとおりです。http://domain.com/lib/MyFile.php

4

0 に答える 0