Skip to content

Instantly share code, notes, and snippets.

@damaya
Created September 22, 2018 21:00
Show Gist options
  • Save damaya/55adb000406590759931b30fb243b8f0 to your computer and use it in GitHub Desktop.
Save damaya/55adb000406590759931b30fb243b8f0 to your computer and use it in GitHub Desktop.
Wildcard redirects
<If "%{HTTP_HOST} == 'www.domain.com.co'">
RedirectMatch 301 (?i)/matchpart http://anyotherdomain.co/path
</If>
Check https://perishablepress.com/case-insensitive-redirectmatch/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment