CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • Any chance anybody has some QUERYSTRING redirect knowledge!??
Pages: [1]

Author Topic: Any chance anybody has some QUERYSTRING redirect knowledge!??  (Read 271 times)

RachelWright

  • I post occasionally
  • **
  • Posts: 78
  • Karma: 3
  • CiviCRM version: 4.2.7
  • CMS version: Joomla 2.5.17
  • MySQL version: 5.5.37
  • PHP version: 5.4.26
Any chance anybody has some QUERYSTRING redirect knowledge!??
July 09, 2014, 01:57:21 pm
Please forgive this sort or errant post but I at my wits end!! 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 PCPages. As you all know the 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 couldn't get those variations to work either. Any help is greatly appreciated!!!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • Any chance anybody has some QUERYSTRING redirect knowledge!??

This forum was archived on 2017-11-26.