This documentation relates to CiviCRM version 3.1. It's not maintained anymore.
Current version of documentation.

Base URL Change

Skip to end of metadata
Go to start of metadata

This page refers to outdated version of CiviCRM. Check current version of documentation.

Documentation Search

CiviCRM 3.1 Documentation

Support and Participation

Developer Resources

CiviCRM book!

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

How can I change my base URL?

PROBLEM: I changed the base URL of my site from to 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: 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.

  • None

Creative Commons License
Except where otherwise noted, content on this site is licensed under a Creative Commons Attribution-Share Alike 3.0 United States Licence.