Title: Query Parameters
Last modified: August 23, 2022

---

# Query Parameters

 *  Resolved [thesheikhdanish](https://wordpress.org/support/users/thesheikhdanish/)
 * (@thesheikhdanish)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/query-parameters-3/)
 * Hi,
    I have installed redirection plugin on my xampp wordpress local installation.
 * I have installed wordpress inside c:/xampp/htdocs/wordpress folder [http://localhost/wordpress](http://localhost/wordpress)
 * I created a page named asda which is accessible at [http://localhost/wordpress/asda](http://localhost/wordpress/asda)
 * My permalink setting is : [http://localhost/wordpress/%postname%](http://localhost/wordpress/%postname%)
 * I want to pass parameter to my asda page with one query parameter tracking .For
   example [http://localhost/wordpress/asda?tracking=value](http://localhost/wordpress/asda?tracking=value)
   where value is an integer
    I want my url to look like [http://localhost/wordpress/asda/value](http://localhost/wordpress/asda/value)
 * Pasting [http://localhost/wordpress/asda](http://localhost/wordpress/asda) on
   browser address bar works fine, but
    [http://localhost/wordpress/asda?tracking=1](http://localhost/wordpress/asda?tracking=1)
   gives “The requested URL was not found on this server.”
 * How can i achieve this redirection with your plugin.
 * TIA

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

 *  Plugin Author [John Godley](https://wordpress.org/support/users/johnny5/)
 * (@johnny5)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/query-parameters-3/#post-15942177)
 * You will need to configure your .htaccess file to pass all requests to WordPress.
 *  Thread Starter [thesheikhdanish](https://wordpress.org/support/users/thesheikhdanish/)
 * (@thesheikhdanish)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/query-parameters-3/#post-15942301)
 * Hi John,
    Thanks for response. [http://localhost/wordpress/asda?tracking=1](http://localhost/wordpress/asda?tracking=1)
   is working fine now. No errors.
 * Now i want [http://localhost/wordpress/asda?tracking=1](http://localhost/wordpress/asda?tracking=1)
   to look like [http://localhost/wordpress/asda/1](http://localhost/wordpress/asda/1)
   on browser. How can i achieve this using Redirection plugin.
 * Please help.
    -  This reply was modified 3 years, 9 months ago by [thesheikhdanish](https://wordpress.org/support/users/thesheikhdanish/).
 *  Plugin Author [John Godley](https://wordpress.org/support/users/johnny5/)
 * (@johnny5)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/query-parameters-3/#post-15942433)
 * You should be able to use a regular expression:
 * [https://redirection.me/support/redirect-regular-expressions/](https://redirection.me/support/redirect-regular-expressions/)
 *  [Why Not Advertising, LLC](https://wordpress.org/support/users/whyknott/)
 * (@whyknott)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/query-parameters-3/#post-15942973)
 * Sorry to piggy back on this support request but I’m a newbie and think I have
   a simple Query parameter question. If you want I’ll post a new topic, just let
   me know.
 * All I want to do is when someone clicks to view Cherry Tree Community it automatically
   adds the Query Parameter to the URL…….See my screenshot
    [https://prnt.sc/0y6OcTRmULZq](https://prnt.sc/0y6OcTRmULZq)
 * How can I make this happen?
 * More context:
 * I have a custom post type called “communities” and I want when someone visits
   the page for the query parameter to be added [https://mysite.com/communities/cherry-tree/?community=”Cherry-Tree-Community](https://mysite.com/communities/cherry-tree/?community=”Cherry-Tree-Community)
 * The “Cherry Tree Community” ending of the parameter corresponds with a drop down
   select form field on a form on the same page which pre-selects that specific 
   community in the drop down.
 * Having said all that, how can I make this happen with the plugin using a query
   parameter?
 * Since I’m a newbie, I’d love if you can tell me where to put the code.
 * I have the “snippets” plugin installed which makes it easy for me to organize
   code blocks and tell code to only run on front end etc.
 * Thank you!
    -  This reply was modified 3 years, 9 months ago by [Why Not Advertising, LLC](https://wordpress.org/support/users/whyknott/).
      Reason: I added a visual example of my problem
    -  This reply was modified 3 years, 9 months ago by [Why Not Advertising, LLC](https://wordpress.org/support/users/whyknott/).
      Reason: Updated my screenshot link

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

The topic ‘Query Parameters’ 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/)

 * 4 replies
 * 3 participants
 * Last reply from: [Why Not Advertising, LLC](https://wordpress.org/support/users/whyknott/)
 * Last activity: [3 years, 9 months ago](https://wordpress.org/support/topic/query-parameters-3/#post-15942973)
 * Status: resolved