The MU forums have moved to WordPress.org

Images have all disapeared (5 posts)

  1. HiMyNameIsCharlie
    Member
    Posted 14 years ago #

    Hi guys I have looked for an answer in these and other forums with no luck. I have worked with WP and MU for years and have NEVER seen this happen.

    All of my images are now broken. The images do exist on the server, but WP can not display them, and if I type the direct image path into my browser, instead of the image I get a crazy page of weird characters like wing dings.

    Here's a broken page http://cdowd.com/154/154/

    And here's a direct image link w/ the weird characters
    http://cdowd.com/files/2009/12/WDmix.jpg

    Any and all help is greatly appreciated.

  2. andrea_r
    Moderator
    Posted 14 years ago #

    It's not rendering the image properly.
    DID you ask your webhost? Because "sudden" issues are usually their doing. ;)

  3. HiMyNameIsCharlie
    Member
    Posted 14 years ago #

    Hi Andrea I asked them and they said it was my htaccess. I have not made any changes to it and the file is right out of the box. Here it is:

    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>

    See anything wrong? Everything else is working fine, just not the images. :-/

  4. HiMyNameIsCharlie
    Member
    Posted 14 years ago #

    Hmmm, if I remove the htaccess file, then the images come back in the admin, but the live posts and pages go to 404??? So weird!

  5. HiMyNameIsCharlie
    Member
    Posted 14 years ago #

    For anyone with a similar problem, I commented out 1 line in my htaccess file and the images all came back. Here is the new htaccess:

    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>

    Found the solution from http://wordpress.org/support/topic/327425?replies=7

    Hopefully that will help someone else in the future. :-)

About this Topic

  • Started 14 years ago by HiMyNameIsCharlie
  • Latest reply from HiMyNameIsCharlie