Answers.Body: <p>I would double check the <code>civicrm.settings.php</code> file to make sure the paths and URL are updated in there. For example:</p>
  
  <pre><code>define( 'CIVICRM_UF_BASEURL'      , 'http://foo.example.com/' );
  </code></pre>
  
  <p>While you are in there make sure the server paths look right:</p>
  
  <pre><code>$civicrm_root = '/home/path_to_html/sites/all/modules/civicrm';
  define( 'CIVICRM_TEMPLATE_COMPILEDIR', '/home/path_to_html/sites/default/files/civicrm/templates_c/' );
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-08-20T20:41:54.143Z
Answers.Text: who-hoo! thanks, that was it! Knew I'd have missed something. Many thanks  for your time.
Answers.UserDisplayName: artfulrobot
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-08-20T20:34:32.593Z
Answers.LastActivityDate: 2015-08-20T20:34:32.593Z
Answers.UserDisplayName: Laryn
Body: <p>I installed CiviCRM 4.4 (LTS) on <code>foo.example.com</code> and then needed to move it to <code>bar.example.com</code>. I have updated the <strong>Resource URLs</strong> page with the new domain. However certain links, for example the links to "View and edit custom fields" on the custom data page at <code>/civicrm/admin/custom/group</code> still all point to the old domain.</p>
  
  <p>I've tried <code>drush cc all; drush -u 1 civicrm-update-cfg</code> but the links are still the old ones.</p>
  
  <p>Have I missed something? Thanks.</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-08-20T19:16:06.680Z
Comments.Text: Maybe worth a try with Administer > System Settings > Cleanup Caches and Update Paths?
Comments.UserDisplayName: Laryn
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-08-20T20:21:04.027Z
Comments.Text: Thanks, tried that also but no good.
Comments.UserDisplayName: artfulrobot
Tags: <drupal><lts><migration>
Title: How to correct domain in URLs after a change?
ThreadText: # How to correct domain in URLs after a change?
  
  (Asked by: username_0 on 2015-08-20)
  
  I installed CiviCRM 4.4 (LTS) on `foo.example.com` and then needed to move it to `bar.example.com`. I have updated the **Resource URLs** page with the new domain. However certain links, for example the links to "View and edit custom fields" on the custom data page at `/civicrm/admin/custom/group` still all point to the old domain.
  
  I've tried `drush cc all; drush -u 1 civicrm-update-cfg` but the links are still the old ones.
  
  Have I missed something? Thanks.
  
  **Tags:** drupal, lts, migration
  
  > **Comments:**
  > **username_1**: Maybe worth a try with Administer > System Settings > Cleanup Caches and Update Paths?  
  > **username_0**: Thanks, tried that also but no good.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2015-08-20. Score: 4 | Accepted answer
  
  I would double check the `civicrm.settings.php` file to make sure the paths and URL are updated in there. For example:
  
  ```
  define( 'CIVICRM_UF_BASEURL'      , 'http://foo.example.com/' );
  
  ```
  
  While you are in there make sure the server paths look right:
  
  ```
  $civicrm_root = '/home/path_to_html/sites/all/modules/civicrm';
  define( 'CIVICRM_TEMPLATE_COMPILEDIR', '/home/path_to_html/sites/default/files/civicrm/templates_c/' );
  
  ```
  
  > **Comments:**
  > **username_0**: who-hoo! thanks, that was it! Knew I'd have missed something. Many thanks  for your time.  
  
  ---
  
  