Support » Networking WordPress » wp-content/blogs.php file is deprecated

  • Hello,

    I am getting this message in my admin panel: The wp-content/blogs.php file is deprecated. Please remove it and update your server rewrite rules to use wp-includes/ms-files.php instead.

    I don’t know how to update my server rewrite rules. Where can I find them. I am using cpanel.

    Thanks for any help you can provide.


Viewing 10 replies - 1 through 10 (of 10 total)
  • backup file and just delete it from server.
    that should do the trick 🙂

    (then test the site and if everything is ok than you don’t need it)

    Sorry Tony, you;re missing the second part: “and update your server rewrite rules to use wp-includes/ms-files.php instead”

    If you do not do this all your uploaded images will disappear.

    AlexV – in Cpanel, when you first go to the file manager, check the box to show hidden files. In the same root where the wp-config.php file is (usually public_html) there’s a file called .htaccess. It has the dot in front, that means it’s usually hidden. This is where the rewrite rules are.

    Find this:
    RewriteRule ^(.*/)?files/(.*) wp-content/blogs.php?file=$2 [L]

    Change it to:
    RewriteRule ^(.*/)?files/(.*) wp-includes/ms-files.php?file=$2 [L]

    Deleting the old blogs.php file doesn’t even matter if you change the rewrite rules first.

    Hi, I did this, but am still seeing the message “The wp-content/blogs.php file is deprecated…” I rechecked the .htaccess a number of times, and the new “RewriteRule ^(.*/)?files/(.*) wp-includes/ms-files.php?file=$2 [L]” is in the code.

    Any suggestions?

    so… delete the file? 😀

    I already deleted “wp-content/blogs.php” Do you mean some other file?

    Thanks Andrea

    Worked like a charm!


    I should add that I started a new site after having crashing my old site trying to upgrade, so all current images are ones I uploaded after making the recommended changes. I need to try to import my old database if I can, but that is another problem.

    Everything seems to be working fine, but I am still getting the message in my dashboard:

    “The wp-content/blogs.php file is deprecated…”

    This after deleting wp-content/blogs.php file and adding:

    RewriteRule ^(.*/)?files/(.*) wp-includes/ms-files.php?file=$2 [L]

    to the .htaccess file

    As I say everything seems to work fine. Should I be concerned about the continued “file is deprecated” message?



    Nah, you can ignore it.

    in your htaccess file find below code

    RewriteRule ^(.*/)?files/(.*) wp-content/blogs.php?file=$2 [L]

    and replace with

    RewriteRule ^(.*/)?files/(.*) wp-includes/ms-files.php?file=$2 [L]

    you all done.

    Thanks andrea_r

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘wp-content/blogs.php file is deprecated’ is closed to new replies.