I have copied my host Db down to my localhost DB. I get the Front Pages and the Administration pages but Images are not showing. My local site is on http://localhost/wlvh/sites. In firefox images are being sought from "sites/images". If I change that to the full (http) path it works. If I put wlvh/sites/images it does not work. If I click on a linked image or submenu item I get a 404: "The requested URL /content/lulworth-village-hall-events-january-2010 was not found on this server.".
The File system path is set to "sites/default/files" and "sites/default/files/tmp" and changing this does not help.
.htaccess does not have the base url set but changing that does not seem to help.
Any advice appreciated.
Comments
.
Is http://localhost/wlvh/sites your local site's front page?
Is Drupal located inside a "sites" directory, and the images stored in an "images" subdirectory directly under that?
To what full URL did you change that image link to make it work?
Try setting the $base_url in
Try setting the $base_url in your settings.php to the absolute URL where drupal was installed.
I tried tweaking the settings
I tried tweaking the settings and HTAccess but to no avail. In the end I exported the DB and changed all URLs in the watchdog table (and some others relating to URL aliases and it all worked. I will have to remember that when I transfer DBs again BUT I would really like to be able to do a direct transfer! Thansk for your replies.
It turns out that when Drupal
It turns out that when Drupal renders images inserted in blog post, it doesn't use the relative path to the Drupal installation but to the server itself. I was able to fix the missing pictures by changing the configuration in the Apache file server. I pointed the document root to the Drupal installation directory. Granted this is not hte perfect solutions for those with multiple Drupal installs, but it helps if you only need to replicate one site.