Migrated my joomla site to WP. The images were in a folder named ‘asets’ in joomla site. I copied the dir to wp and images work fine while url structure is raw.
But if I change the url permalink, the link to images also change.

sitename/?p=123 image path = sitename/asets/imagefile this works.

sitename/samplepost image path = sitename/post-name/asets/imagefile image not found

sitename/archive/123 image path = sitename/archive/asets/imagefile image not found

Please help me to solve this problem.

Read more here: WP image link changes on permalink change


If you know the solution of this issue, please leave us a reply in Comment section, to update the question.

Wordpress related questions and answers: