Title: [Plugin: Redirection] Case (in)sensitive option?
Last modified: August 20, 2016

---

# [Plugin: Redirection] Case (in)sensitive option?

 *  [sgastevep](https://wordpress.org/support/users/sgastevep/)
 * (@sgastevep)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-redirection-case-insensitive-option/)
 * Is there an option I am just missing to make the URL match portion case insensitive?
   Just got bit by this one as I had one of the site administrators create a redirection
   for tracking purposes and it wasn’t working when the user didn’t use the same
   case for all the letters as the redirection URL had. I went in and modified it
   to use a regex and did an [Aa] type thing for every letter, but having a check
   box to make it case insensitive would be very helpful. Thanks!
 * [http://wordpress.org/extend/plugins/redirection/](http://wordpress.org/extend/plugins/redirection/)

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

 *  [paulhastings0](https://wordpress.org/support/users/paulhastings0/)
 * (@paulhastings0)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-redirection-case-insensitive-option/#post-2867795)
 * Of course we can do this through RegEx [like in this example](http://wordpress.org/support/topic/plugin-redirection-regex-syntax-for-case-insensitivity)
   but you have to admit that it’s rather time-intensive and that most users of 
   the plugin wouldn’t know the first thing about setting up a RegEx expression.
 * I totally agree with [@sgastevep](https://wordpress.org/support/users/sgastevep/).
   A checkbox for this feature would be awesome.
 * +1 for a case-insensitive checkbox!
 *  [MRC123](https://wordpress.org/support/users/mrc123/)
 * (@mrc123)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-redirection-case-insensitive-option/#post-2867796)
 * This would be a fantastic option. It’s pain the butt trying to come up with all
   the various why any one person can type something in.
 * Another +1
 *  [ccolotti](https://wordpress.org/support/users/ccolotti/)
 * (@ccolotti)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-redirection-case-insensitive-option/#post-2867797)
 * +1000!!! This burns me on a regular basis. I LOVE this plugin but the case sensitivity
   is certainly a Pain.
 *  [alieneila](https://wordpress.org/support/users/alieneila/)
 * (@alieneila)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-redirection-case-insensitive-option/#post-2867809)
 * I’m not sure if my option is the best (especially since it involves hacking the
   core code of the plugin which would be lost on update) but it seems to be working
   and it might help some of you guys out, this is what I did…
 * File: /redirection/models/redirect.php
    Line: 300
 * Looking for:
 *     ```
       function matches( $url ) {
       		$this->url = str_replace( ' ', '%20', $this->url );
       		$matches   = false;
       ```
   
 * Changing to:
 *     ```
       function matches( $url ) {
       		$url = strtolower($url);
       		$this->url = str_replace( ' ', '%20', $this->url );
       		$this->url = strtolower($this->url);
       		$matches   = false;
       ```
   
 *  [JochenT](https://wordpress.org/support/users/jochent/)
 * (@jochent)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-redirection-case-insensitive-option/#post-2867816)
 * If you want this case insensitive check the ‘Regex’ option and enter the Source
   URL with a `(?i)` in the front:
    (?i)/Ultraspecial-Systems\.html
 * As it is an regular expression now some characters like `?, ., [, ], (, ), {,},
   ^, $` may have a special meaning and should all be prepended with a backslash
   like `'\.'` in the above example.
 *  [BjornB](https://wordpress.org/support/users/bjornb/)
 * (@bjornb)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/plugin-redirection-case-insensitive-option/#post-2867861)
 * +1 for this option. Any chance it will be added?
 *  [BjornB](https://wordpress.org/support/users/bjornb/)
 * (@bjornb)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/plugin-redirection-case-insensitive-option/#post-2867862)
 * Dead silence in here

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

The topic ‘[Plugin: Redirection] Case (in)sensitive option?’ 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: [BjornB](https://wordpress.org/support/users/bjornb/)
 * Last activity: [13 years, 2 months ago](https://wordpress.org/support/topic/plugin-redirection-case-insensitive-option/#post-2867862)
 * Status: not resolved