I'm moving our civi from Joomla to Wordpress and as a part of the process I wanted to set up some redirects for our existing PCP pages. As you all know civi URLs are kind of long: baseurl.com/sub_dir/index.php/component/civicrm/?task=civicrm/pcp/info&reset=1&id=XX
I've found several posts explaining query string redirects like this one (http://simonecarletti.com/blog/2009/01/apache-query-string-redirects/) but in all of them their variable is right after the "?". I have tried the following to no avail:
RewriteEngine on
RewriteCond %{QUERY_STRING} task=civicrm/pcp/info&reset=1&id=20$
RewriteRule ^sub_dir/index\.php/component/civicrm/$ /path-to-new-location/? [L,R=301]
Eventually, I do want to write it with variables (as we have several hundred PCPs but I wanted to get something working first.) Any help is greatly appreciated!!!