Changing Base URL

We encourage users to post events happening in the community to the community events group on https://www.drupal.org.
You are viewing a wiki page. You are welcome to join the group and then edit it. Be bold!

Each time I move/copy a Drupal installation from one URL to another I must remember to update the following:

/sites/default/settings.php
$db_url = 'mysql://username:password@localhost/databasename';
or
$db_url = 'mysqli://username:password@localhost/databasename';
and
$base_url = 'http://www.example.com'; // NO trailing slash!

and

.htaccess
# Modify the RewriteBase if you are using Drupal in a subdirectory and
# the rewrite rules are not working properly.
# RewriteBase /drupal

if you want to change the drupal from sub directory to the root directory
change rewrite rule to

RewriteBase /

====
D'oh!!

Seattle

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

Hot content this week