Site import and use of relative urls
-
Is there a recommendation as to using relative urls so that they will work without a problem when you import a WordPress export file on to a new site. I have two issues which don’t appear resolvable.
Firstly, it is not possible to use a relative url when linking to a file in the media library as this will have the url sitename.files.wordpress.com/year/month/etc. So I can’t use a relative url as this will generate a url of sitename.wordpress.com/year/month/etc i.e. omitting the .files part. The link therefore does not work. However when an absolute url is used and the site export is imported to a new site, all of the urls are pointing back to the original site and I have to change them all manually.
Secondly, the shortlink urls which are generated for Posts, can’t be made into relative urls in any case. Therefore all of the links which are set up using these urls all point back to the original site when the export file is used to create a new site.
Any guidance on the matter would be appreciated, even if it is only a “You should use absolute URLS and you will have to do manual changes on the new site”.The blog I need help with is: (visible only to logged in users)
-
When you do an export of a WordPress.com site, the image files are not included in the export file, but instead are pulled from the originating site and downloaded to your media library. This keeps the export file from being massive and timing out when you download it.
If you didn’t insert the images via the Add media button but instead created relative links to the images, they cannot be captured by the export process.
This shouldn’t be an issue for posts and pages since that content is part of the export file, but if you linked to other pages internally, you may need to update those links on your new site.
- The topic ‘Site import and use of relative urls’ is closed to new replies.