Title: Case Insensitive
Last modified: August 30, 2016

---

# Case Insensitive

 *  [Tor N. Johnson](https://wordpress.org/support/users/kasigi/)
 * (@kasigi)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/case-insensitive-1/)
 * Is there a way to make the redirection plugin redirect in a case insensitive 
   manner? We’re using the plugin to create short urls for marketing and do not 
   want to rely on users getting the case correct every time.
 * [https://wordpress.org/plugins/redirection/](https://wordpress.org/plugins/redirection/)

Viewing 7 replies - 1 through 7 (of 7 total)

 *  [Annette Voelckner](https://wordpress.org/support/users/onthisearth/)
 * (@onthisearth)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/case-insensitive-1/#post-6301227)
 * Same question for a case insensitive manner as well.
 *  [Darren Cooney](https://wordpress.org/support/users/dcooney/)
 * (@dcooney)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/case-insensitive-1/#post-6301285)
 * If you want to hack core, you can adjust line 330 of /redirection/models/redirect.
   php and replace the following:
 *     ```
       $this->url = str_replace( ' ', '%20', $this->url );
       $matches   = false;
       ```
   
 * with:
 *     ```
       $url = strtolower($url);
       $this->url = str_replace( ' ', '%20', $this->url );
       $this->url = strtolower($this->url);
       $matches   = false;
       ```
   
 * as seen in this thread.
    [https://wordpress.org/support/topic/plugin-redirection-case-insensitive-option?replies=8#post-3098586](https://wordpress.org/support/topic/plugin-redirection-case-insensitive-option?replies=8#post-3098586)
 * This really needs to be a global setting.
    Please John! 🙂
 *  [hmkay](https://wordpress.org/support/users/hmkay/)
 * (@hmkay)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/case-insensitive-1/#post-6301326)
 * I’d like this feature aswell
 *  [Shannon Little](https://wordpress.org/support/users/enchiridion/)
 * (@enchiridion)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/case-insensitive-1/#post-6301327)
 * You can do it with a regex by adding (?i) to the front.
 * Source URL (?i)^\/old-url\/
    Target URL /new-url/
 * I’d prefer a simple checkbox to having to convert everything to regexs though.
 *  [BlackApps](https://wordpress.org/support/users/blackapps/)
 * (@blackapps)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/case-insensitive-1/#post-6301330)
 * Enchiridion, thanks for the info. I am new to regex and tried adding (?i) in 
   front of the source but the redirect did not occur when I used an uppercase character
   in the URL as a test. Am I supposed to also add ^\ after the ?! and then \/ at
   the end like your example above? So, it looks like this: (?i)^\/old-url\/ instead
   of this (?i)/old-url. Thanks!
 *  [kld53](https://wordpress.org/support/users/kld53/)
 * (@kld53)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/case-insensitive-1/#post-6301337)
 * I agree this would be a great feature. Or just enabled by default. I can’t image
   someone wanting /abc to redirect but not /ABC ?
 *  [kld53](https://wordpress.org/support/users/kld53/)
 * (@kld53)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/case-insensitive-1/#post-6301338)
 * BlackApps, did you also enable the regex box? It seems to work for me.
 * Thanks Enchiridion.

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Case Insensitive’ 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/)

 * 7 replies
 * 7 participants
 * Last reply from: [kld53](https://wordpress.org/support/users/kld53/)
 * Last activity: [10 years, 1 month ago](https://wordpress.org/support/topic/case-insensitive-1/#post-6301338)
 * Status: not resolved