Answers.Body: <p>Sometimes CiviCRM sends you to an absolute URL, even though most of the time you navigate through links with relative URLs.</p>
  
  <p>CiviCRM uses the base URL in your civicrm.settings.php file to build the absolute URLs, and it caches that base URL for performance.  I suspect that your situation is either:</p>
  
  <ul>
  <li>the base URL in the settings file still points to the live site, or</li>
  <li>the cache still has the live site URL even though you updated the settings file.</li>
  </ul>
  
  <p>To fix this, confirm that the settings file has the right URL, and then visit <strong>Administer > System Settings > Clear caches and update paths</strong>.  Update the paths there, and you should be good to go.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-06-01T16:04:27.300Z
Answers.Text: Thanks Andrew that did the trick.  Any chance that you could point me in the direction of documentation for using the CiviDiscount extension.  We are trying to add a discount code to a subscribe to an online magazine page and most of the documentation I have seen leaves me scratching my head.  In particular how do you add it to a specific page
Answers.UserDisplayName: Nathan Melen
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-05-31T22:52:40.723Z
Answers.LastActivityDate: 2016-05-31T22:52:40.723Z
Answers.UserDisplayName: Andie Hunt
Body: <p>I am working on a redesign of an existing site.  I've gone ahead and created a local site and imported the CiviCRM database.  The client wants to allow the user to add a discount code while subscribing to an on-line magazine (part of the redesign).  I've followed these directions <a href="https://wiki.civicrm.org/confluence/display/CRMDOC/Extensions" rel="nofollow">https://wiki.civicrm.org/confluence/display/CRMDOC/Extensions</a> and got to installing the manage extensions page where when I click on the install CiviDiscount Module Extension it redirects me to the log in page on the live site.  </p>
  
  <p>I am thinking that there must be a configuration issue somewhere.   </p>
  
Tags: <drupal><cividiscount>
Title: add CiviCRM extensions to local site
ThreadText: # add CiviCRM extensions to local site
  
  (Asked by: username_0 on 2016-05-31)
  
  I am working on a redesign of an existing site. I've gone ahead and created a local site and imported the CiviCRM database. The client wants to allow the user to add a discount code while subscribing to an on-line magazine (part of the redesign). I've followed these directions <https://wiki.civicrm.org/confluence/display/CRMDOC/Extensions> and got to installing the manage extensions page where when I click on the install CiviDiscount Module Extension it redirects me to the log in page on the live site.
  
  I am thinking that there must be a configuration issue somewhere.
  
  **Tags:** drupal, cividiscount
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2016-05-31. Score: 4 | Accepted answer
  
  Sometimes CiviCRM sends you to an absolute URL, even though most of the time you navigate through links with relative URLs.
  
  CiviCRM uses the base URL in your civicrm.settings.php file to build the absolute URLs, and it caches that base URL for performance. I suspect that your situation is either:
  
  * the base URL in the settings file still points to the live site, or
  * the cache still has the live site URL even though you updated the settings file.
  
  To fix this, confirm that the settings file has the right URL, and then visit **Administer > System Settings > Clear caches and update paths**. Update the paths there, and you should be good to go.
  
  > **Comments:**
  > **username_0**: Thanks Andrew that did the trick.  Any chance that you could point me in the direction of documentation for using the CiviDiscount extension.  We are trying to add a discount code to a subscribe to an online magazine page and most of the documentation I have seen leaves me scratching my head.  In particular how do you add it to a specific page  
  
  ---
  
  