Hello, my experience with apache is ~ 0 and I need your help. My problem is the following: I need that an URL is accessible only for some defined users. In the URL there is a query parameter and that is the discriminator. The URL could be something like this: https://my.my.com/my-app/view/myView.xhtml?myQueryParam=allUsers Googling a little I came upon this possible solution: RewriteEngine on RewriteCond %{REQUEST_URI} "/my-app/view/myView[.]xhtml.*" RewriteCond %{QUERY_STRING} myQueryParam=allUsers RewriteRule .* - [E=no_auth_required:1] <LocationMatch "/my-app/view/myView[.]xhtml.*"> Require uniqueID user1ID user2ID </LocationMatch> Between xhtml and ? could come additional strings too, therefor the * This works but the problem is that it also denies the access to for ex. the link https://my.my.com/my-app/view/myView.xhtml?myQueryParam=somethingElse It seams that it doesn't bother the value of the query parameter... What do I miss? Thank you in advance. Greetings Francesco