0

I need your help. I've this two URLs:

And I want to match both URLs in one regex in my .htaccess file:

SetEnvIfNoCase Request_URI ^/product-category/langzeitvermietung/ SECURED

but somehow it's ignoring the first URL with the shop prefix. Does anyone has an idea how I need to change my regex to get this also matched?

I've tried out the following non-working examples:

SetEnvIfNoCase Request_URI ^*/product-category/langzeitvermietung/ SECURED
SetEnvIfNoCase Request_URI ^(*)/product-category/langzeitvermietung/ SECURED
SetEnvIfNoCase Request_URI ^./product-category/langzeitvermietung/ SECURED
Wiktor Stribiżew
  • 607,720
  • 39
  • 448
  • 563
Mr. Jo
  • 4,946
  • 6
  • 41
  • 100

1 Answers1

0

Remove the ^
If I leave that out, it works for me.

Try:

SetEnvIfNoCase Request_URI /product-category/langzeitvermietung/ SECURED
RoXTar
  • 164
  • 1
  • 13