On our dev site, I imported an old blog into a new blog with the official importer:
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?
Francisco Javier Carazo Gil answers:
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.
Replace with: ./wp-content/uploads...