[wp-trac] [WordPress Trac] #55135: Media URLs break when migrating WordPress content to different domains
WordPress Trac
noreply at wordpress.org
Thu Feb 10 08:28:16 UTC 2022
#55135: Media URLs break when migrating WordPress content to different domains
--------------------------+-----------------------------
Reporter: brylie | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Import | Version: 5.9
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
All media assets use absolute URLs when exporting WordPress content,
including the domain name and port if present.
When importing the content on a new WordPress installation located at a
different domain or port, page/post media fail to render since they point
to the previous domain/port.
https://github.com/creativecommons/project_creativecommons.org/issues/225
The hard-coded links require post-processing the XML file for the content
to be portable across domains and environments (e.g., development,
staging, and production).
Ideally, media URLs in the export file would be relative to the WordPress
root, such as described in the following issue from 11 years ago:
https://core.trac.wordpress.org/ticket/17048
--
Ticket URL: <https://core.trac.wordpress.org/ticket/55135>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list