1

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.

0
1

You could add this to the homepage template.

{% if craft.request.getParam('post_type') == "testimonials" %} 
   {% redirect "/about-us" %} 
{% endif %}
1
  • 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 :) Jan 16 '15 at 4:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.