Multisite image issues

Matthew Krick's picture

Hey everyone,

I'm setting up a website for a tattoo shop and am using multisite to handle the multiple domains registered for the site.

so my sites structure looks like:

/sites/crossroadstat2.com/
/sites/xroadstatoo.com/
/sites/bearvalleyhydroponics.com/ (unrelated site, but is the "default" site)

The problem I've run into is that images uploaded to nodes while connected to crossroadstat2.com get uploaded to the crossroadstat2 files folder. When viewing the node from xroadstattoo.com the images don't appear.

example:
http://www.crossroadstat2.com/artists/mike-d (works perfectly)
http://www.xroadstattoo.com/artists/mike-d (no images!)

When I mouse-over the image url I get these 2 different urls.
http://www.crossroadstat2.com/sites/crossroadstat2.com/files/Mike%2001.jpg (crossroadstat2.com)
http://www.xroadstattoo.com/sites/xroadstattoo.com/files/sites/crossroad... (xroadstattoo.com)

When viewing the site from crossroadstat2.com how do I get the images to pull the files from the correct directory?

I'd like both urls to work right and not have to redirect xroadstattoo to crossroadstat2. Anyone have some ideas?

Login to post comments

Ok, looks like the fix was

Matthew Krick's picture
Matthew Krick - Fri, 2009-10-09 20:25

Ok, looks like the fix was easier than I thought it would be. I had tried messing with my settings.php and .htaccess files and all sorts of other nonsense.

But I just needed to log into the 2nd url as admin, go to /admin/settings/file-system and make sure the file system path pointed to the first url.