1
我想重定向「?p_id = 62」進行http認證,但它不起作用。一個網址的重寫規則/ HTTP認證
我的conf:
<LocationMatch ^/>
RewriteCond %{QUERY_STRING} !^\?p_id=62$
RewriteRule^- [E=NO_AUTH:1,L]
Order deny,allow
Deny from all
AuthType basic
AuthName "Auth Needed"
AuthUserFile "/var/www/site/.htpasswd"
Require valid-user
Allow from env=NO_AUTH
Satisfy Any
</LocationMatch>
誰能幫助?
謝謝喬恩! – Amauche