开发者

Drupal: losing images when moving site location; placeholders point to old absolute path rather than relative path

My file directories have not changed, but every time I move from local 开发者_运维百科host to production, or just change the filename of a test site online, I loose the images.

Example: I've mainly been using an online location for building and testing Drupal sites, but recently I forgot to stop the robots from indexing a test site. So as a quick fix I just moved the site by changing the name of test test folder. When I first do this I loose images, but I also loose links from the admin menu because they point to the old absolute path too. (I don't seem to loose anything else like the theme, etc.) So I run update.php and flush the caches, and the admin menu links automatically point to the correct locations. But the image place holders still point to the old location instead of the new locations. It's very frustrating because I assume it's a simple fix but I just don't know how? Tks.

PS, first time using SO and I hope I'm posting this on the correct site?


Change $Base_URL in your settings.php file.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜