Support » Networking WordPress » Media Files 404 Error Multisite

  • Resolved syssu


    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:

    Real upload path as i did some hunting around to find out its:

    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

    Thank you in advance!

Viewing 1 replies (of 1 total)
  • 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 =)

Viewing 1 replies (of 1 total)
  • The topic ‘Media Files 404 Error Multisite’ is closed to new replies.