Answers.Body: <p>"Too many redirects" is almost always caused by URL rewrites.  Your web server software (e.g. Apache, nginx) handles URL rewrites, so it's most likely that your problem lies in the configuration of that software, not CiviCRM.  To my knowledge, CiviCRM doesn't generate a redirect on any links other than click-through links.</p>
  
  <p>To resolve this, I would take the following two steps:</p>
  
  <ul>
  <li>Press "F12" to open your Developer Tools (in Chrome or Firefox; Safari's are lacking).  Go to the "Network" tab.</li>
  <li>Trigger the "too many redirects" error.  You should see a bunch of network requests.  Note the URL, and look for any patterns.  A common pattern is:</li>
  </ul>
  
  <p><a href="http://my.org/civicrm/" rel="nofollow noreferrer">http://my.org/civicrm/</a></p>
  
  <p><a href="http://my.org/civicrm/civicrm" rel="nofollow noreferrer">http://my.org/civicrm/civicrm</a></p>
  
  <p><a href="http://my.org/civicrm/civicrm/civicrm" rel="nofollow noreferrer">http://my.org/civicrm/civicrm/civicrm</a></p>
  
  <p>etc.</p>
  
  <ul>
  <li>Find the "rewrites" section of your web server configuration.  Look for the pattern that matches the URLs you found on your Network tab.  Tweak that rewrite rule and restart your web server software.</li>
  </ul>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-01-05T17:58:28.740Z
Answers.LastActivityDate: 2017-01-05T17:58:28.740Z
Answers.UserDisplayName: Jon G - Megaphone Tech
Body: <p>I'm trying to setup membership renewals for an organisation I've just migrated over to CiviCRM, all of the membership details seem to have been imported correctly (dates and details show correctly). All memberships expired on 31.12.16.</p>
  
  <p>I am trying to setup the renewal emails and have emailed a dummy run to myself via my membership record. Having reviewed the guidance at <a href="https://docs.civicrm.org/user/en/master/membership/renewals/" rel="nofollow noreferrer">https://docs.civicrm.org/user/en/master/membership/renewals/</a> I have set the URL in the emails to </p>
  
  <blockquote>
    <p>my.org/joomla/index.php?option=com_civicrm&amp;task=civicrm/contribute/transact&amp;reset=1&amp;id=N&amp;{contact.checksum}&amp;cid={contact.contact_id}</p>
  </blockquote>
  
  <p>When the link comes through on the emails it is populated correctly with the checksum and ID but when I click on it I get a too many redirects error.</p>
  
  <p>I've found something strange in that if the link is clicked as is  - eg. </p>
  
  <blockquote>
    <p>my.org/joomla/index.php?option=com_civicrm&amp;task=civicrm/contribute/transact&amp;reset=1&amp;id=N&amp;{contact.checksum}&amp;cid={contact.contact_id}</p>
  </blockquote>
  
  <p>(obviously populated with info) I get an error. However, if I set the URL to </p>
  
  <blockquote>
    <p>my.org/joomla/index.php?option=com_civicrm&amp;task=civicrm/contribute/transact**?**reset=1&amp;id=N&amp;{contact.checksum}&amp;cid={contact.contact_id}</p>
  </blockquote>
  
  <p>, I initially get a page not found error, if I then change the ? symbol back to an &amp; symbol the renewal page all completely filled in as it should be appears.</p>
  
  <p>Does anyone know what's going on, I can't ask my members to renew using an incorrect link that requires manual modification.</p>
  
  <p>I have replicated this error both in Chrome and Safari. I am using Joomla version 3.6.5. I am using CiviCRM version 4.7.14.</p>
  
  <p>Please help!</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-01-05T12:32:39.427Z
Comments.Text: Welcome to StackExchange! Could you edit your question to include the version of CiviCRM you are using.  This could make a difference to the answers people give.
Comments.UserDisplayName: William Mortada
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-01-05T12:37:47.247Z
Comments.Text: Apologies, had edited the post - I am using CiviCRM version 4.7.14. Thanks
Comments.UserDisplayName: Craig
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-12-26T12:12:59.880Z
Comments.Text: Hello, I have a similar problem with CiviCRM on WordPress. Did you solve your problem? If yes how?
Comments.UserDisplayName: Pierre
Tags: <civicontribute><civimember><joomla>
Title: Renewal Link Results In Too Many Redirects Error
ThreadText: # Renewal Link Results In Too Many Redirects Error
  
  (Asked by: username_0 on 2017-01-05)
  
  I'm trying to setup membership renewals for an organisation I've just migrated over to CiviCRM, all of the membership details seem to have been imported correctly (dates and details show correctly). All memberships expired on 31.12.16.
  
  I am trying to setup the renewal emails and have emailed a dummy run to myself via my membership record. Having reviewed the guidance at <https://docs.civicrm.org/user/en/master/membership/renewals/> I have set the URL in the emails to
  
  > my.org/joomla/index.php?option=com\_civicrm&task=civicrm/contribute/transact&reset=1&id=N&{contact.checksum}&cid={contact.contact\_id}
  
  When the link comes through on the emails it is populated correctly with the checksum and ID but when I click on it I get a too many redirects error.
  
  I've found something strange in that if the link is clicked as is - eg.
  
  > my.org/joomla/index.php?option=com\_civicrm&task=civicrm/contribute/transact&reset=1&id=N&{contact.checksum}&cid={contact.contact\_id}
  
  (obviously populated with info) I get an error. However, if I set the URL to
  
  > my.org/joomla/index.php?option=com\_civicrm&task=civicrm/contribute/transact\*\*?\*\*reset=1&id=N&{contact.checksum}&cid={contact.contact\_id}
  
  , I initially get a page not found error, if I then change the ? symbol back to an & symbol the renewal page all completely filled in as it should be appears.
  
  Does anyone know what's going on, I can't ask my members to renew using an incorrect link that requires manual modification.
  
  I have replicated this error both in Chrome and Safari. I am using Joomla version 3.6.5. I am using CiviCRM version 4.7.14.
  
  Please help!
  
  **Tags:** civicontribute, civimember, joomla
  
  > **Comments:**
  > **username_1**: Welcome to StackExchange! Could you edit your question to include the version of CiviCRM you are using.  This could make a difference to the answers people give.  
  > **username_0**: Apologies, had edited the post - I am using CiviCRM version 4.7.14. Thanks  
  > **username_2**: Hello, I have a similar problem with CiviCRM on WordPress. Did you solve your problem? If yes how?  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_3 on 2017-01-05. Score: 1
  
  "Too many redirects" is almost always caused by URL rewrites. Your web server software (e.g. Apache, nginx) handles URL rewrites, so it's most likely that your problem lies in the configuration of that software, not CiviCRM. To my knowledge, CiviCRM doesn't generate a redirect on any links other than click-through links.
  
  To resolve this, I would take the following two steps:
  
  * Press "F12" to open your Developer Tools (in Chrome or Firefox; Safari's are lacking). Go to the "Network" tab.
  * Trigger the "too many redirects" error. You should see a bunch of network requests. Note the URL, and look for any patterns. A common pattern is:
  
  <http://my.org/civicrm/>
  
  <http://my.org/civicrm/civicrm>
  
  <http://my.org/civicrm/civicrm/civicrm>
  
  etc.
  
  * Find the "rewrites" section of your web server configuration. Look for the pattern that matches the URLs you found on your Network tab. Tweak that rewrite rule and restart your web server software.
  
  
  ---
  
  