The path to image on dev site is:
http://water.uidaho.local/sites/water.uidaho.local/files/imagecache/teas...

On the other hand, the path to that image when on the live site is:
http://water.uidaho.edu/sites/water.uidaho.edu/files/imagecache/teaser_1...

I want to sync the dev and live site so I don't have to change file name path in the database each time I upload database.

Figure I can put a files folder under main drupal install or change the dev multi-site domain name to water.uidaho.edu?

Trying to figure out the pro's/cons. What would you do?

Comments

timpiche’s picture

Drupal generally stores the url as relative to the site root.

You see:
http://water.uidaho.edu/sites/water.uidaho.edu/files/imagecache/teaser_1...

Drupal see's
/sites/water.uidaho.edu/files/imagecache/teaser_124/fritzsummit_0.png

This way when a site is migrated, all paths are relative to the site root as opposed to explicit url's