Posted by jdwalling on July 20, 2007 at 6:26pm
Last updated by Gowri Ananthan on Fri, 2009-11-13 05:41
Last updated by Gowri Ananthan on Fri, 2009-11-13 05:41
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!!