This documentation refers to an older version of CiviCRM (3.4 / 4.0). The current stable version is 4.1. Please introduce all documentation changes and new material here.

Skip to end of metadata
Go to start of metadata
This page refers to CiviCRM 3.4 and 4.0, current STABLE version.

Documentation Search


CiviCRM 3.4 and 4.0 Documentation

Support and Participation

Developer Resources


CiviCRM books!

Make sure to check out the FLOSS Manual Understanding CiviCRM as well! You can also support this project by ordering a hard copy.

Or support us by buying an eBook or hard copy of Using CiviCRM from Packt Publishing.

How can I change my base URL?

PROBLEM: I changed the base URL of my site from olddomain.com to newdomain.com and updated the civicrm.settings.php file to reflect the new base URL. Strangely enough, civicrm did not seem to recognize the new settings until I went into the admin menu to revise the URLs under global settings (even though I forced Drupal to reload all modules). Everything works fine (Civicrm CSS, links, and JS files all have the correct URL). However, image files still point to the old domain: http://olddomain.com/sites/default/modules/civicrm/i/contact_ind.gif I must be missing a setting somewhere, but cannot figure out where to look.

RESPONSE: As of 1.6 these settings are in the database not the settings file, hence in Global Settings. If you are sure the settings are correct in Global Settings then you could try deleting the contents of files/civicrm/templates_c/ and flush any sessions and caches you can find in Drupal (sessions and cache table) and your web browser. Seems to be our panacea for this kind of issue!

FEEDBACK: Purging the contents of files/civicrm/templates_c/ worked beautifully. I didn't even have to flush the sessions or cache table, but will definitely keep that in mind next time a weird quirk arises.

[Source. ]

You may also need to visit civicrm/menu/rebuild?reset=1 to rebuild menu's with correct URLs.

See also: Moving an Existing Installation to a New Server or Location

Labels
  • None