I am having problems uploading images, I have been struggling to fix it for the past two weeks with no luck.
When i upload a file, the file is uploaded but I cannot see it in the editor or directly pointing to the url where the file is unless I remove these two lines from my .htaccess file.
'
RewriteRule ^(.*/)?files/$ index.php [L]
RewriteRule ^(.*/)?files/(.*) wp-content/blogs.php?file=$2 [L]
'
This is an example.
This is the actual path to an image I uploaded http://clubsdotcom.com/wp-content/blogs.dir/1/files/2008/06/law-ball-015a21-150x150.jpg
This is the wordpress editor url http://clubsdotcom.com/files/2008/06/law-ball-015a21-150x150.jpg
This is my actual .htaccess
'
RewriteEngine On
RewriteBase /
#uploaded files
RewriteRule ^(.*/)?files/$ index.php [L]
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>
'
Wordpress MU has been installed on the main directory, I am using MU Version 1.5, All the plugins has been turned off and server is Running Apache with cpanel.
Please I need all the help i can get.
Thanks,
Levi