0

Can someone help me understand what "(?:^|&)" and "(?:&|$)" mean below? I skimmed through the documentation but it is not clear.

RewriteCond %{QUERY_STRING} (?:^|&)site=(eu|jp|in)(?:&|$) [NC]
RewriteRule ^/?fetchHomePage.action$ https://example.com/%1? [R=301,L,NC]

Leads here is appreciated.

Thanks

ThinkGeek
  • 4,749
  • 13
  • 44
  • 91
  • Possible duplicate of [What is a non-capturing group? What does (?:) do?](https://stackoverflow.com/questions/3512471/what-is-a-non-capturing-group-what-does-do) – CBroe Feb 05 '18 at 15:24
  • This is not Apache-specific, but a general regular expression feature - see duplicate for explanation. – CBroe Feb 05 '18 at 15:25

0 Answers0