I migrated a website from one host to another, and I am having a weird issue I never encountered before. The urls to images in html are fine, but the full path to the image has a broken url, the domain outputs twice.
So here is the code generated for an image:
<img src="subdomain.domain.com/wp-content/uploads/2013/12/aleksandra.jpg" class="attachment-full wp-post-image" alt="aleksandra">
And here is the full path to the image in inspector:
http://subdomain.domain.com/subdomain.domain.com/wp-content/uploads/2013/12/aleksandra.jpg
If you need more info please do not hesitate to ask. Any help is much appreciated.
Thanks
UPDATE wp_posts SET post_content = replace(post_content, 'subdomain.domain.com/subdomain.domain.com', 'subdomain.domain.com');
andUPDATE wp_posts SET guid = replace(guid, 'http://subdomain.domain.com/subdomain.domain.com','http://subdomain.domain.com');
in Mysql to seehttp://
or maybe left the main domain in thehome url
orblog url
options)