I have a multisite setup. Sites are located at localhost/drupal and localhost/drupal2. Drupal2 uses a copy of the database used by drupal. Drupal2 works from the new database however I am experiencing a frustrating problem. Whenever I log in as administrator and navigate to localhost/drupal2/admin the links in there all point to drupal instead of drupal2 so when I make changes is affects drupal and not drupal2. drupal2 settings.php have been set to
$base_url = 'http://localhost/drupal2'; I have gone though the database tables to see if there is anything else that needs to be changed but I couldn't find anything. What else needs to be changed?

Comments

tryitonce’s picture

You have to adjust your $db_url = to refelect the local set-up and point to the db for Drupasl2.

nhero’s picture

I have already set that up. Thats what strange. If I go into drupal and turn the site off drupal turns off and drupal2 still runs. There must be a setting somewhere that needs to be modified but I am not sure what it is.

nhero’s picture

Ok, I figured it out. it was a .htaccess issue

for anyone else that has this problem this code needs to go before the current rewrite rules. I had it after the rules.

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} ^/mysite/(.*)$
RewriteRule ^(.*)$ /mysite/index.php?q=$1 [L,QSA]

tryitonce’s picture

... thanks for getting back with the solution!!!!!!!!!!!!!!!!!!!!!

manish812’s picture

Thanx a lot .

I was using this code below the current rewrite rules so it was not working but after reading your article I move it to top of the current rewrite rules and it works for me.

AllyMediaGroup’s picture

I have been trying to fix this issue for a day and a half now. This resolved the issue.