Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
LocationMatchApacheで使用してクエリ文字列を照合するにはどうすればよいですか?
LocationMatch
<LocationMatch "/index.php\?a=b.*"> // ...
...残念ながら動作しません。
Location/にクエリ文字列を含めることはできないようですLocationMatch。
Location
Apache ドキュメントから:
すべてのオリジン (非プロキシ) リクエストの場合、一致する URL は /path/ 形式の URL パスです。スキーム、ホスト名、ポート、またはクエリ文字列を含めることはできません。プロキシ リクエストの場合、一致する URL の形式は scheme://servername/path であり、プレフィックスを含める必要があります。