• Hello,

    When I edit a post, and add media (say an image), the HTML for the uploaded image uses the full URL to the image, eg https://www.mydomain.com/wp-content/uploads/2018/05/imagename.png

    Is there any way to make it use relative URLs, eg /wp-content/uploads/2018/05/imagename.png so thta if I change the domain, the images will still load?

    Right now, I’m copying a load of posts from my old blog, and will soon be changing the domain name records so it points at the new blog. If I had absolute URLs, all my images would fail to load. As it happens, I’ve been editing the HTML manually after inserting images, but this is a pain. I’d like to avoid that if I can.

    Anyone any ideas? Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Can I set WP to use relative URLs when inserting media?’ is closed to new replies.