Old multisite subsite relative path to image (in block/Full HTML with CKeditor and on localhost/XAMPP):


New multisite path (what I'm trying to achieve):


So, in Full HTML input settings for Pathologic, we select the 3rd option Relative path and add lines:


And nothing happpens, it just strips the /sites/site1.localhost/ from path and now the path to image is just:


How do I make it the /sites/site2.localhost/?

1 Answer 1


Solved running SQL query in phpMyAdmin

UPDATE field_data_body  SET body_value = REPLACE(body_value,'src="/olddirectory','src="/newdirectory');

Source article: http://www.coolestguidesontheplanet.com/downtown/changing-image-paths-drupal-subdirectory-installation

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.