サイトのパスワード保護が必要です。Web サービスの URL のままですべてを許可します。
この式はApacheで完全に機能しますが、反対にする必要があります。
<LocationMatch "^(.*service).*$">
AuthType Basic
AuthName "Restricted Files"
AuthUserFile /storage/www/xxxxx/.htpasswd
Require valid-user
</LocationMatch>
私は多くの多くのフォームを試していますが、うまくいきません。私はこれを試してみましたが、Apache(2.2)ではなく、レギュラーテスターで完全に動作します
<LocationMatch "^(?!.*service).*$">
その表現をどのように否定できますか?
問題がある場合は.htaccessコンテンツ。
RewriteEngine on
RewriteBase /
# ....
RewriteRule txxxx/(.*) index.php?config=main_lite&r=script/xxx/deliverData&url=$1
# rule 1 -- let these requests pass through (S=1 skips the next rule)
RewriteCond %{REQUEST_FILENAME} favicon.(gif|ico) [NC,OR]
RewriteCond %{REQUEST_FILENAME} .+\.(pdf|js|css|txt|jpg|jpeg|gif|png|bmp|ico|swf|html|log|svg|ttf|eot|woff|woff2)$ [OR]
RewriteCond %{REQUEST_URI} rsc/ [OR]
RewriteCond %{REQUEST_URI} index.php$
RewriteRule (.*) - [S=1]
# rule 2 - pass every request to index.php
RewriteRule .* index.php