instead of

img src="http://www.DOMAIN.com/sites/default/files/images/file.jpg"

do:

img src="/sites/default/files/images/file.jpg"

The reason is I am developing my site on a test domain. With the full absolute path, I'll have to change all the img src when I move to my real domain. Using the relative path avoids this problem.

Comments

sun’s picture

Status: Active » Closed (won't fix)

To circumvent this, you should not use HTML output mode, use filter tags instead. When migrating your site to the production server/domain, you can simply flush/truncate/clear your cache_filter table. Optionally use Devel module for that.