Title: URL parameters as array getting stripped
Last modified: August 21, 2016

---

# URL parameters as array getting stripped

 *  [AIResearcher](https://wordpress.org/support/users/airesearcher/)
 * (@airesearcher)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/url-parameters-as-array-getting-stripped/)
 * The following .htaccess rule
 * RewriteCond %{QUERY_STRING} ^.*(\[|\]|\(|\)|<|>|ê|”|;|\?|\*|=$).* [NC,OR]
 * strips out URL parameters from the following url:
 * [http://www.mysite.com/index.php?use%5B%5D=C&use%5B%5D=S](http://www.mysite.com/index.php?use%5B%5D=C&use%5B%5D=S)
 * Where use is passed as an array. (I.E. a series of check-boxes, etc…)
 * However, it only does this on certain PHP installations, while other installations
   work fine.
 * In order to get it working, I just change the rule to:
 * RewriteCond %{QUERY_STRING} ^.*(\(|\)|<|>|ê|”|;|\?|\*|=$).* [NC,OR]
 * But I’m not sure of what security implications this circumvents. I would rather
   change the PHP rule, or the .htaccess rule slightly to avoid this parameter passing
   issue.
 * [http://wordpress.org/plugins/better-wp-security/](http://wordpress.org/plugins/better-wp-security/)

The topic ‘URL parameters as array getting stripped’ is closed to new replies.

 * ![](https://ps.w.org/better-wp-security/assets/icon.svg?rev=3529351)
 * [Kadence Security – Password, Two Factor Authentication, and Brute Force Protection](https://wordpress.org/plugins/better-wp-security/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/better-wp-security/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/better-wp-security/)
 * [Active Topics](https://wordpress.org/support/plugin/better-wp-security/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/better-wp-security/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/better-wp-security/reviews/)

## Tags

 * [htaccess](https://wordpress.org/support/topic-tag/htaccess/)
 * [parameters](https://wordpress.org/support/topic-tag/parameters/)
 * [url](https://wordpress.org/support/topic-tag/url/)

 * 0 replies
 * 1 participant
 * Last reply from: [AIResearcher](https://wordpress.org/support/users/airesearcher/)
 * Last activity: [12 years, 9 months ago](https://wordpress.org/support/topic/url-parameters-as-array-getting-stripped/)
 * Status: not resolved