• chaoticme

    (@chaoticme)


    Hi.. I am having problem loading the images..

    PLEASE HELP…

    My problem started when we deployed a staging site within the same hosting server..

    The following URL image is one of the images that is not loading properly..

    http://www.onlinewellnesscommunity.org/wp-content/blogs.dir/1/files/avatars/3/82add6146c0f6ae8b55a0b26f8fe0b8b-bpthumb.jpg

    http://www.onlinewellnesscommunity.org/blogs.dir/1/files/avatars/3/82add6146c0f6ae8b55a0b26f8fe0b8b-bpthumb.jpg

    Both URLs are not working.. I also tried to check .htaccess files..

    DirectoryIndex index.php
    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]

    #FIXED: BEGIN WordPress
    RedirectMatch 301 /wp-content/uploads/(.*)$ http://www.onlinewellnesscommunity.org/files/$1

    #uploaded files
    RewriteRule ^(.*/)?files/$ index.php [L]
    RewriteCond %{REQUEST_URI} !.*wp-content/plugins.*
    RewriteRule ^(.*/)?files/(.*) wp-includes/ms-files.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-(content|admin|includes).*) $2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
    RewriteRule . index.php [L]
    # END WordPress

    <IfModule mod_security.c>
    <Files async-upload.php>
    SecFilterEngine Off
    SecFilterScanPOST Off
    </Files>
    </IfModule>

    Any comments or suggestions would be appreciate.. Thanks in Advance!

Viewing 2 replies - 1 through 2 (of 2 total)
  • #RewriteRule ^(.*/)?files/(.*) wp-content/blogs.php?file=$2 [L]

    Did you upgrade to 3.0 from wpmu? Because you need to change this line.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    That line is commented out and, thus, won’t be called. But.

    Even removing your cruft, your .htaccess is this:

    DirectoryIndex index.php
    RewriteEngine On
    RewriteBase /
    
    #FIXED: BEGIN WordPress
    RedirectMatch 301 /wp-content/uploads/(.*)$ http://www.onlinewellnesscommunity.org/files/$1
    
    #uploaded files
    RewriteRule ^(.*/)?files/$ index.php [L]
    RewriteCond %{REQUEST_URI} !.*wp-content/plugins.*
    RewriteRule ^(.*/)?files/(.*) wp-includes/ms-files.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-(content|admin|includes).*) $2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
    RewriteRule . index.php [L]
    # END WordPress
    
    <IfModule mod_security.c>
    <Files async-upload.php>
    SecFilterEngine Off
    SecFilterScanPOST Off
    </Files>
    </IfModule>

    Which doesn’t look right.

    Go to http://codex.wordpress.org/Create_A_Network#.htaccess_and_Mod_Rewrite

    Pick the RIGHT .htaccess for your setup and try that in place of the WP stuff you have in there now. It’s different for subdomains as subfolders.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘WORDPRESS MU – Image Loading Problem’ is closed to new replies.