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
  • 561,645
  • 34
  • 376
  • 476
Mr. Jo
  • 4,440
  • 2
  • 30
  • 78

1 Answers1

0

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

Try:

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