The MU forums have moved to WordPress.org

.htaccess / folder conflict (2 posts)

  1. diesel12
    Member
    Posted 15 years ago #

    I've got a new MU installation installed in the root ( public_html ) on my server. Also in the root is a folder called "files" ... this folder has all sorts of goodies that previously lived in this same place in the root beside a single WP install.

    Since I have installed mu the files in the "files" folder all return a 404 error if I navigate to them... until I remove my .htaccess file, that is....

    I'm not exactly sure how to read what is causing the issue in my .htaccess, so I've posted it below... any feedback is appreciated..... my ultimate goal is to not have to rename the "files" folder because this would require a ton of redirects to be made...

    Any feedback appreciated! I tried removing </Files> to no avail...

    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>

  2. diesel12
    Member
    Posted 15 years ago #

    Alrighty... in case anyone has similar issues.... it isn't the .htaccess per se, but that MU uses /file/ for blog image uploads.... usually via > wp-content/blogs.dir/files/ > path to each user and their images... moral of the story, no folders called "file" allowed in root...

About this Topic

  • Started 15 years ago by diesel12
  • Latest reply from diesel12