Forum Moderators: phranque
<LocationMatch "/(order|(?!order.*dir=[mM]anage.*)|search)">
The enclosed directives will be applied to the request if the path component of the URL meets any of the following criteria:
...
the URL to be matched is a URL-path of the form /path/. No scheme, hostname, port, or query string may be included
<LocationMatch "/(order|search)"> <LocationMatch "/(order|?!order.*dir=[mM]anage.*|search)">
/(order(?!.*dir=[mM]anage)|search) \?(\w+=\d+&)?