Answers.Body: <p>You could add this to the homepage template. </p>
  
  <pre><code>{% if craft.request.getParam('post_type') == "testimonials" %} 
     {% redirect "/about-us" %} 
  {% endif %}
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-01-16T04:03:11.680Z
Answers.Text: Thanks, although I would prefer an option that allows to change this directly from the admin section, this does work and we may use it if we can't find a better solution :)
Answers.UserDisplayName: Deceptikong
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-01-12T07:46:47.907Z
Answers.LastActivityDate: 2015-01-12T07:46:47.907Z
Answers.UserDisplayName: a-am
Body: <p>I'm using Redirect Manager (<a href="https://github.com/rkingon/Craft-Plugin--Redirect-Manager" rel="nofollow">https://github.com/rkingon/Craft-Plugin--Redirect-Manager</a>) and I"m trying to redirect:
  <strong>www.website.com/?post_type=testimonials</strong></p>
  
  <p>To:
  <strong>www.website.com/about-us</strong></p>
  
  <p>I've tried the following regex rules with no success (hashes are needed for regex in redirect manager):</p>
  
  <p>#^\?post_type=testimonials#</p>
  
  <p>#^\?post_type=testimonials$#</p>
  
  <p>#post_type=testimonials$#</p>
  
  <p>All of them just stay on the homepage with the query appended when accessing the url. Any ideas on how to fix it or better ways of achieving this would be appreciated.</p>
  
Tags: <url><redirect><regex>
Title: How to redirect a url with a query to one that does not have a query
ThreadText: # How to redirect a url with a query to one that does not have a query
  
  (Asked by: username_0 on 2015-01-12)
  
  I'm using Redirect Manager (<https://github.com/rkingon/Craft-Plugin--Redirect-Manager>) and I"m trying to redirect:
  **www.website.com/?post\_type=testimonials**
  
  To:
  **www.website.com/about-us**
  
  I've tried the following regex rules with no success (hashes are needed for regex in redirect manager):
  
  #^\?post\_type=testimonials#
  
  #^\?post\_type=testimonials$#
  
  #post\_type=testimonials$#
  
  All of them just stay on the homepage with the query appended when accessing the url. Any ideas on how to fix it or better ways of achieving this would be appreciated.
  
  **Tags:** url, redirect, regex
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2015-01-12. Score: 1 | Accepted answer
  
  You could add this to the homepage template.
  
  ```
  {% if craft.request.getParam('post_type') == "testimonials" %} 
     {% redirect "/about-us" %} 
  {% endif %}
  
  ```
  
  > **Comments:**
  > **username_0**: Thanks, although I would prefer an option that allows to change this directly from the admin section, this does work and we may use it if we can't find a better solution :)  
  
  ---
  
  