Remove domain name from media upload urls and internal links
When a user uploads a media file to a post/page, the full url is included. When a site owner changes domain names, this requires a full search and replace in the database - this isn't something that a typical end-user would know how to do or feel comfortable doing.
Images uploaded through the media library and inserted with the media upload button into a post or a page should drop the domain name from the url, ie: "/wp-content/uploads/11/2014/image.jpg," so that when transferring the site's content to a new domain name, there are not broken links all over the content.
There are plugins that can do this, and this is not the first time this has been proposed.
At this time, there are no plans to introduce relative URLs, as it would over complicate moving WordPress, changing URLs, multisite, and moving the wp-content folder.
I think this is a reaaly useful feature and needed to be implemented inside the core functionality. As wordpress uses absolute url in the site, it became very hard when migrating to HTTPS. WordPress should use protocol relative url everywhere so that the pain become less. Like //example.com/some.png
Now if anyone know any plugin that can do that, please tell me. I wanna know. It took 6 hrs to migrate my site froperly to https due to this absolute urls.
RSS feed for this topic
You must log in to post.