WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] MU 2.9.2 upgrade to 3.0 - rewrite rules (9 posts)

  1. garyploski
    Member
    Posted 4 years ago #

    I upgraded via the auto upgrade tool in 2.9.2 and now have this message on the top of my page...

    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 understand that I should 'remove wp-content/bogs.php'

    But what part of my .htaccess file do I change?

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

    Should I change wp-content/blogs.php?file=$2 to:

    wp-includes/ms-files.php
    or
    wp-includes/ms-files.php?file=$2

  2. The latter. The whole thing should look like this:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    
    # uploaded files
    RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L]
    
    # add a trailing slash to /wp-admin
    RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]
    
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule  ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
    RewriteRule  ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
    RewriteRule . index.php [L]
    </IfModule>
    # END WordPress

    (okay, you don't need the IfModule, but ... well, I'm of the better safe than sorry school)

  3. garyploski
    Member
    Posted 4 years ago #

    This is what I have presently...

    RewriteEngine on
    RewriteBase /
    
    #uploaded files
    RewriteRule ^(.*/)?files/$ index.php [L]
    RewriteCond %{REQUEST_URI} !.*wp-content/plugins.*
    RewriteRule ^(.*/)?files/(.*) wp-includes/ms-files.php?file=$2 [L]
    
    # add a trailing slash to /wp-admin
    RewriteCond %{REQUEST_URI} ^.*/wp-admin$
    RewriteRule ^(.+)$ $1/ [R=301,L]
    
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule . - [L]
    RewriteRule  ^([_0-9a-zA-Z-]+/)?(wp-.*) $2 [L]
    RewriteRule  ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
    RewriteRule . index.php [L]
    
    <IfModule mod_security.c>
    <Files async-upload.php>
    SecFilterEngine Off
    SecFilterScanPOST Off
    </Files>
    </IfModule>
    
    RewriteCond %{HTTP_REFERER} !^http://garyploski.com/.*$      [NC]
    RewriteCond %{HTTP_REFERER} !^http://garyploski.com$      [NC]
    RewriteCond %{HTTP_REFERER} !^http://www.garyploski.com/.*$      [NC]
    RewriteCond %{HTTP_REFERER} !^http://www.garyploski.com$      [NC]
    RewriteCond %{HTTP_REFERER} !^http://casthim.com/.*$      [NC]
    RewriteCond %{HTTP_REFERER} !^http://casthim.com$      [NC]
    RewriteCond %{HTTP_REFERER} !^http://flipmeover.com/.*$      [NC]
    RewriteCond %{HTTP_REFERER} !^http://flipmeover.com$      [NC]
    RewriteRule .*\.(.*/.*/)$ - [F,NC]

    Would it be best/better to redo my .htaccess with the code you posted?

  4. garyploski
    Member
    Posted 4 years ago #

    Weekend bump. Suggestions anyone?

  5. garyploski
    Member
    Posted 4 years ago #

    A little help with a bump in the night? ;)

  6. garyploski
    Member
    Posted 4 years ago #

    One last try... Thoughts anyone?

  7. There's a solution in this thread that may help:

    http://wordpress.org/support/topic/411383

  8. garyploski
    Member
    Posted 4 years ago #

    Excellent. Thanks.

  9. You're welcome!

Topic Closed

This topic has been closed to new replies.

About this Topic