• What is the Regex Syntax for case insensitivity? I want my redirects to work whether someone types in upper or lower or a combination.

    For example:

    Source: /contact or /CONTACT or /CoNtAct

    Target: https://domainname/contact-my-company-name

    How do I use “regex” to make sure that any variation of the source, regardless of upper/lower case will still work properly and redirect

Viewing 1 replies (of 1 total)
  • You can’t do that with the /i flag because of how the from URL is poked into the preg_match() in the redirector code but you must do it like this in the from URL…

    ^/+(C|c)(O|n)(T|t)(A|a)(C|c)(T|t)/*.*

    as an example. That will match /Contact or /CONTACT//// or anythig in between e.g. /CoNtAcT/

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Redirection] Regex Syntax for case insensitivity?’ is closed to new replies.