Title: [Plugin: Redirection] Regex Syntax for case insensitivity?
Last modified: August 19, 2016

---

# [Plugin: Redirection] Regex Syntax for case insensitivity?

 *  [toobaroo](https://wordpress.org/support/users/toobaroo/)
 * (@toobaroo)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/plugin-redirection-regex-syntax-for-case-insensitivity/)
 * 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: [http://domainname/contact-my-company-name](http://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)

 *  [openmtl](https://wordpress.org/support/users/openmtl/)
 * (@openmtl)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/plugin-redirection-regex-syntax-for-case-insensitivity/#post-2016530)
 * 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.

 * ![](https://ps.w.org/redirection/assets/icon-256x256.jpg?rev=983639)
 * [Redirection](https://wordpress.org/plugins/redirection/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/redirection/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/redirection/)
 * [Active Topics](https://wordpress.org/support/plugin/redirection/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/redirection/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/redirection/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [openmtl](https://wordpress.org/support/users/openmtl/)
 * Last activity: [14 years, 6 months ago](https://wordpress.org/support/topic/plugin-redirection-regex-syntax-for-case-insensitivity/#post-2016530)
 * Status: not resolved