<LocationMatch "^/photos"> <FilesMatch "\.(jpg|png)$"> # Do something </FilesMatch> </LocationMatch>A. Here is a way that works:
<If "%{REQUEST_URI} =~ m#^/photos.*\.(jpg|png)$#"> # Do something </If>
<LocationMatch "^/photos"> <FilesMatch "\.(jpg|png)$"> # Do something </FilesMatch> </LocationMatch>A. Here is a way that works:
<If "%{REQUEST_URI} =~ m#^/photos.*\.(jpg|png)$#"> # Do something </If>