Home » PHP, wordpress

WordPress MU: Fix broken images on 2.9 to 3.0 upgrade

28 July 2010 One Comment

If you have noticed all your blog images breaking after upgrading to WordPress 3.0 from WordPress MU, you will need to make a simple change to the .htaccess file.

  1. Remove the wp-content/blogs.php file as it is no longer supported in WordPress 3.0. It has been replaced with wp-includes/ms-files.php
  2. Locate the .htaccess file in the root directory
  3. Find the following line:
    [php]RewriteRule ^(.*/)?files/(.*) wp-content/blogs.php?file=$2 [L][/php]
  4. Replace it with:
    [php]RewriteRule ^(.*/)?files/(.*) wp-includes/ms-files.php?file=$2 [L][/php]
  5. This should fix the problem with broken images/files not showing up in the WordPress MU blogs.

One Comment »

  • Al said:

    RT @dragonal: WordPress MU: Fix broken images on 2.9 to 3.0 upgrade http://bit.ly/a7Mt5O

Leave your response!

Add your comment below, or trackback from your own site. You can also subscribe to these comments via RSS.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

This is a Gravatar-enabled weblog. To get your own globally-recognized-avatar, please register at Gravatar.

*