Okay I've been working on this just about all day. I installed WordPress MU today and started testing. I have only found 1 problem and have searched the forums here and Google for a solution to no avail.
I have tried many things and nothing seems to work. I'll try and step you though what I have done and my current settings.
Here is the problem: images uploaded via wordpress are being uploaded and to the proper directory. However when I view them I get a 404 error.
Here is my htaccess file:
<IfModule mod_rewrite.c>
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>
<IfModule mod_security.c>
<Files async-upload.php>
SecFilterEngine Off
SecFilterScanPOST Off
</Files>
</IfModule>
So with this config every image within wp-contents goes 404 also blogs.php as well.
I have used both calling them direct:
http://mydomain.com/wp-content/blogs.dir/2/files/2009/01/images.jpg
and via the blogs.php script:
http://mydomain.com/wp-content/blogs.php?file=/2009/01/images.jpg
I have checked permissions have reset them, re-uploaded them and tried just about every thing I could thank of.
no when I comment out:
RewriteRule ^(.*/)?files/(.*) wp-content/blogs.php?file=$2 [L]
I am able to view the image via
http://mydomain.com/wp-content/blogs.dir/2/files/2009/01/images.jpg
but of course not with blogs.php
All the other rewrite urls are working so I have no idea what is going on. I have tried so many things my brain is about to melt. I know I must be missing something....
Also I'm not using vhost so http://mydomain.com/blog1