Support » Networking WordPress » Image URLS after upgrade

  • I’ve done a fresh multisite WP 3.0 install, updated all the .htaccess etc. Then I did an export from a WPMU 2.9.2 site into 3.0. During import I told it to go off and also download/upload all the images and attachments too, which it duly did.

    However, all the actual img src links in the imported posts are all obviously referring to the old WPMU 2.9.2 URL structure of rather than the new WP 3.0 URL’s

    And I can’t think of a way of amending the .htaccess file (for instance) to rewrite these legacy links to the new URL structure – coz I’ve already got RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L] in the new .htaccess file.

    Any ideas or am I missing something very obvious?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Yeah, that “old” URL structure was not WPMU-specifc, but *single* WordPress specific.

    Either physically move a copy of the image files over to the new server into a copy of the old folder structure, or change the URLs in the posts.

    Thanks andrea_r, at least I know its not just me being stupid then 🙂

    I guess I could just do a simple find/replace in my exported xml file before import.

    Rather irritating though – surely this legacy code could’ve been dealt with a bit nicer by the upgrade merge…

    But….. the old mu didn’t use that folder. :-/ So the merge didn’t have to account for it.

    The exported file came from a standard wpmu 2.9.2 install not a single wp and was just done via the normal tools > export feature.

    Do you know if anything was done to that install?

    Iv;e got a few mu installs of my own. None of them put files in the /uploads/ folder.

    So yeah, you can do a search & replace on the exported file as well.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Image URLS after upgrade’ is closed to new replies.