multisite domain name change

We encourage users to post events happening in the community to the community events group on https://www.drupal.org.
isabisa's picture

Hi, I am trying to change the site url for espanol.everywomannc.com to latinasananc.com. espanol.everywomannc.com is a site in the D6 multisite install of everywomannc.com. But I am having some major issues and I can't figure out what I have done wrong.

I set latinasananc.com as a parked domain on my web host. I also created a symlink for the sites directory following the directions about halfway down on this page (https://drupal.org/documentation/install/multi-site). So I did:

$ ln -s /path/to/drupal/sites/espanol.everywomannc.com latinasananc.com

The symlink looks good and I have cleared all caches. But when you go to latinasananc.com, the site loads with the correct content, but none of the resources are correct (the css and js are for the main site). The links on this site also still point to .

How can I get the correct css and js to load? And do I need to do a find and replace in the database to change all the links to use the new base url?

Thanks!

Comments

I just found this on

isabisa's picture

I just found this on stackoverflow and tried it: http://stackoverflow.com/questions/3376714/changing-base-domain-allowing...

  1. I did not rename the sites folder, but I did the symlink, so that should be fine.
  2. I did a find and replace in the whole database for the old url and set it to the new url
  3. I changed the path in Site Configuration > File System
  4. I changed the path for the favicon in the settings page for my theme
  5. I rebuilt the cache

Looks like the links on the site to pages are working fine and that the images are loading from the correct place. But the CSS and JS are not loading.

I took a look at the source code and it looks like the CSS I need to load is /sites/all/themes/ewnc_fusion/css/ewnc-espanol.css and the JS is /sites/all/themes/ewnc_fusion/js/custom-espanol.js and not in the sub-site's sites directory at all.

Turns out there was a call in the theme's template.php file that loaded those files if the $_SERVER['HTTP_HOST'] was espanol.everywomannc.com. Interesting.

Multisite

Group organizers

Group notifications

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

Hot content this week