On our dev site, I imported an old blog into a new blog with the official importer:
[[LINK href="http://wordpress.org/extend/plugins/wordpress-importer/"]]http://wordpress.org/extend/plugins/wordpress-importer/[[/LINK]]
This imported all the images with absolute links (pointing to the dev site) we when we push it to the staging server, all of the image links break.
Is there an importer that imports images using relative paths for the src?
It seems crazy that once we push to production we need to delete all content and re-import. How to large scale sites like TechCrunch handle this situation?
Asad Iqbal answers:
In these case I use the following plugin:
http://wordpress.org/extend/plugins/velvet-blues-update-urls/
I think it will help you too.
Arnav Joy answers:
see this article if helpfull
http://wordpress.stackexchange.com/questions/44503/replace-image-urlsabsolute-instead-of-relative-by-using-filter-in-single-page
Francisco Javier Carazo Gil answers:
Lawrence,
You can change with this tool: http://interconnectit.com/124/search-and-replace-for-wordpress-databases/ (the same that I have told you in the other answer) all the URLs of images from absolute to relative.
Search: http://....
Replace with: ./wp-content/uploads...