Sorry for the snideness but this has been an issue forever, the documentation is a mess and someone must know the answer...
I need to make extensive updates on my (drupal 6.x) website, say http://mysite.com, so I downloaded it to WAMP/www/mysite folder (win 7, wampserver 2.2).
After importing the db, I changed my settings.php settings:
145 $base_url = 'http://localhost/mysite'; // NO trailing slash!
189 $cookie_domain = 'http://localhost/mysite';
The site works, except my pictures don't appear. Yes, mod_rewrites is active and URL alias work. The issue boils down to this: drupal is looking in /sites/default/files/images/image.jpg
when it should look in /mysite/sites/default/files/images/image.jpg.
How do we solve this? Obviously I'm not changing every image link because I'm going to populate my website again. Yes, I've read the other posts. Yes, I've read:
* The configuration directory will be discovered by stripping the
* website's hostname from left to right and pathname from right to
* left. The first configuration file found will be used and any
* others will be ignored. If no other configuration file is found
* then the default configuration file at 'sites/default' will be used.
*
* For example, for a fictitious site installed at
* http://www.drupal.org/mysite/test/, the 'settings.php'