Title: Should exclude query variables too
Last modified: August 30, 2016

---

# Should exclude query variables too

 *  [Yaron Guez](https://wordpress.org/support/users/yguez/)
 * (@yguez)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/should-exclude-query-variables-too/)
 * This plugin excludes URLs containing a period in order to allow users to access
   case sensitive files. However it does not exclude URLs containing query variables
   which may be case sensitive. Adding the following line to the plugin code would
   resolve this:
 *     ```
       if(preg_match('/[\?]/', $url)){
           return;
          }
       ```
   
 * [https://wordpress.org/plugins/force-lowercase-urls/](https://wordpress.org/plugins/force-lowercase-urls/)

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

 *  [joshbuchea](https://wordpress.org/support/users/joshbuchea/)
 * (@joshbuchea)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/should-exclude-query-variables-too/#post-6394140)
 * Yaron – I created a new plugin that includes your recommended change. The plan
   is to regularly update and maintain this plugin. I haven’t published to the WordPress
   Plugin Repository yet, but intend to. Here’s the link: [https://github.com/joshbuchea/wordpress-force-lowercase-urls](https://github.com/joshbuchea/wordpress-force-lowercase-urls).
   Let me know what you think, or maybe star it on GitHub if you find it useful.
   Thanks!
 *  [joshbuchea](https://wordpress.org/support/users/joshbuchea/)
 * (@joshbuchea)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/should-exclude-query-variables-too/#post-6394158)
 * Oops, messed up the github link: [https://github.com/joshbuchea/wp-force-lowercase-urls](https://github.com/joshbuchea/wp-force-lowercase-urls)
 *  Thread Starter [Yaron Guez](https://wordpress.org/support/users/yguez/)
 * (@yguez)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/should-exclude-query-variables-too/#post-6394167)
 * *starred. i’d share the function as a gist too since it’s simple enough to include
   in a custom functionality plugin.
 *  [joshbuchea](https://wordpress.org/support/users/joshbuchea/)
 * (@joshbuchea)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/should-exclude-query-variables-too/#post-6394168)
 * Great idea Yaron! [Gist](https://gist.github.com/joshbuchea/ba40228fbd1f96e413b1)

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

The topic ‘Should exclude query variables too’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/force-lowercase-urls.svg)
 * [Force Lowercase URLs](https://wordpress.org/plugins/force-lowercase-urls/)
 * [Support Threads](https://wordpress.org/support/plugin/force-lowercase-urls/)
 * [Active Topics](https://wordpress.org/support/plugin/force-lowercase-urls/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/force-lowercase-urls/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/force-lowercase-urls/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [joshbuchea](https://wordpress.org/support/users/joshbuchea/)
 * Last activity: [10 years, 6 months ago](https://wordpress.org/support/topic/should-exclude-query-variables-too/#post-6394168)
 * Status: not resolved