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
I just found this on stackoverflow and tried it: http://stackoverflow.com/questions/3376714/changing-base-domain-allowing...
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.