Title: Filter the $url
Last modified: August 22, 2016

---

# Filter the $url

 *  [MichaelApproved](https://wordpress.org/support/users/michaelapproved/)
 * (@michaelapproved)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/filter-the-url/)
 * Would it be possible to add a filter to the code so that we could filter the 
   $url before it’s evaluated by the redirection plugin?
 * Specifically, I’m looking to lowercase the $url before it’s evaluated so that
   all my tests are case insensitive. Of course, I’d also put in all my urls as 
   lowercase so they match the new filtered $url.
 * If there’s a better way to solve this, without using regex, that’d be helpful
   too.
 * Thanks!
 * [https://wordpress.org/plugins/redirection/](https://wordpress.org/plugins/redirection/)

The topic ‘Filter the $url’ 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/)

## Tags

 * [lowercase](https://wordpress.org/support/topic-tag/lowercase/)
 * [regex](https://wordpress.org/support/topic-tag/regex/)

 * 0 replies
 * 1 participant
 * Last reply from: [MichaelApproved](https://wordpress.org/support/users/michaelapproved/)
 * Last activity: [11 years, 7 months ago](https://wordpress.org/support/topic/filter-the-url/)
 * Status: not resolved