WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Media Files 404 Error Multisite (2 posts)

  1. syssu
    Member
    Posted 3 years ago #

    OK so yesterday i made some changes to the .htaccess file as told by a message in wordpress, and tried to make my multisite a single site and failed. Made the changes but the media files stopped showing up. I then reverted back to a 2 day old wp-config.php file and .htaccess as those were the only two i touched.

    This should be showing an image but it dosent:
    http://syssu.com/files/2010/04/NHL-GameCenter-Live-Home-Screen.jpg

    Real upload path as i did some hunting around to find out its:
    /wp-content/blogs.dir/1/files/2010/04/NHL-GameCenter-Live-Home-Screen.jpg

    BUT when i try to view that file in the browser i get the 404 error yet again. Im not sure if its a permissions issue or a .htaccess file issue but Id like to get it fixed. Here is my .htaccess file for you to take a look at.

    RewriteEngine On
    RewriteBase /
    
    #uploaded files
    RewriteRule ^(.*/)?files/$ index.php [L]
    RewriteCond %{REQUEST_URI} !.*wp-content/plugins.*
    RewriteRule ^(.*/)?files/(.*) wp-content/blogs.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>

    Thank you in advance!

  2. syssu
    Member
    Posted 3 years ago #

    Ok I figured it out. I was told by wp-admin to remove blogs.php and change the rewrite rules to use ms-files.php. Well when i reverted back to the old .htaccess file it changed back to the blogs.php that did not exist =)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags