Title: Allow a url in query-string
Last modified: September 1, 2016

---

# Allow a url in query-string

 *  Resolved [surefoot](https://wordpress.org/support/users/surefoot/)
 * (@surefoot)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/allow-a-url-in-query-string/)
 * I am using a membership plugin which on invalid password redirects the user back
   to the login page whose url it passes in a query-string.
 * How do I allow this in the .htaccess file? I cannot make changes to the membership
   plugin code as it is encrypted.
 * Please help. Thanks!
 * [https://wordpress.org/plugins/all-in-one-wp-security-and-firewall/](https://wordpress.org/plugins/all-in-one-wp-security-and-firewall/)

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

 *  Plugin Contributor [mbrsolution](https://wordpress.org/support/users/mbrsolution/)
 * (@mbrsolution)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/allow-a-url-in-query-string/#post-7671046)
 * Hi, did you enable the following feature **Deny Bad Query Strings:** under **
   Firewall -> Additional Firewall Rules**?
 * If you did you need to find which string is causing your issue then remove that
   string from the code added in your .htaccess file.
 * The way to achieve this is by copying all the code added in the .htaccess file
   into the following tab **Custom Rules** under **Firewall**. Then you remove the
   string that is causing this issue. Then you disable **Deny Bad Query Strings:**.
   That way when ever you update the plugin you will not loose your custom settings.
 * If you don’t know what string is causing this issue and it is very challenging
   to find out, you can always disable the following feature **Deny Bad Query Strings:**.
 * Let me know if this helps you.
 * Kind regards
 *  Thread Starter [surefoot](https://wordpress.org/support/users/surefoot/)
 * (@surefoot)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/allow-a-url-in-query-string/#post-7671067)
 * Hi, thanks for response. I have the feature enabled. I had tried disabling ‘Deny
   Bad Query Strings’ before but it did not help but when I had deactivated the 
   whole plugin the issue got resolved.
 * I also made a copy of the .htaccess file and tried removing the portions within
   below sections
    #AIOWPS_DENY_BAD_QUERY_STRINGS_START #AIOWPS_ADVANCED_CHAR_STRING_FILTER_START
 * Since when the url is there in query string I get forbidden error these sections
   seemed likely.
 * I have a question regarding your suggestion that if I copy .htaccess to Custom
   rules do I delete those in .htaccess?
 * Best regards
 *  Plugin Contributor [mbrsolution](https://wordpress.org/support/users/mbrsolution/)
 * (@mbrsolution)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/allow-a-url-in-query-string/#post-7671069)
 * Hi, in regards to your question.
 * >  I have a question regarding your suggestion that if I copy .htaccess to Custom
   > rules do I delete those in .htaccess?
 * When you copy the content between the above tags and including the tags into **
   Custom Rules** tab, you don’t have to delete anything from the .htaccess file.
   All this is done automatically by the plugin.
 * For example, after you copy the above mentioned and disable the following feature**
   Deny Bad Query Strings:**. The plugin will remove the content from the following,
 * **#AIOWPS_DENY_BAD_QUERY_STRINGS_START
    #AIOWPS_ADVANCED_CHAR_STRING_FILTER_START
 * and move it outside of the plugins tags in the .htaccess file. This prevents 
   the plugin from removing any customization after you update the plugin.
 * Let me know if you need more information.
 *  Thread Starter [surefoot](https://wordpress.org/support/users/surefoot/)
 * (@surefoot)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/allow-a-url-in-query-string/#post-7671077)
 * Thanks for your help. The reason was 5G Blacklist. Line was #RewriteRule .* –[
   F]. I have commented it out.
 * Can you now guide me regarding how commenting this out will affect me?
 * Best regards
 *  [Česlav Przywara](https://wordpress.org/support/users/chesio/)
 * (@chesio)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/allow-a-url-in-query-string/#post-7671087)
 * Hi,
 * If the membership plugin works with 6G enabled, just disable 5G and you are fine.
   5G is already quite outdated these days.
 * Cheers,
    Česlav

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

The topic ‘Allow a url in query-string’ is closed to new replies.

 * ![](https://ps.w.org/all-in-one-wp-security-and-firewall/assets/icon-256x256.
   png?rev=2798307)
 * [All-In-One Security (AIOS) – Security and Firewall](https://wordpress.org/plugins/all-in-one-wp-security-and-firewall/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/all-in-one-wp-security-and-firewall/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/all-in-one-wp-security-and-firewall/)
 * [Active Topics](https://wordpress.org/support/plugin/all-in-one-wp-security-and-firewall/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/all-in-one-wp-security-and-firewall/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/all-in-one-wp-security-and-firewall/reviews/)

## Tags

 * [Query String](https://wordpress.org/support/topic-tag/query-string/)

 * 5 replies
 * 3 participants
 * Last reply from: [Česlav Przywara](https://wordpress.org/support/users/chesio/)
 * Last activity: [9 years, 9 months ago](https://wordpress.org/support/topic/allow-a-url-in-query-string/#post-7671087)
 * Status: resolved