.Htaccess = No Thumbnails

My htaccess file is causing thumbnails not to show up properly.

I am using a fresh re-install of wordpress 3.1 upgraded to 3.31

http://joedfilms.bangfruit.us/

It either doesn’t display logo at top left OR no thunmbnails.

I also have a fresh from scratch install that has no problems

http://8082.bangfruit.us/8082/

Htaccess causes no thumbs to show. No Htaccess lets them show but I lose logo.

Here is my current .htaccess

This only happens with certain themes (elegant themes)…What gives?

RewriteEngine On
RewriteBase /

#uploaded files
RewriteRule ^(.*/)?files/$ index.php [L]
RewriteCond %{REQUEST_URI} !.*wp-content/plugins.*
RewriteRule ^(.*/)?files/(.*) wp-includes/ms-files.php?file=$2 [L]
RewriteRule ^(.*/)?avatar/(.*) wp-content/avatar.php?file=$2 [L]
RewriteRule ^(.*/)?sitemap.xml wp-content/sitemap.php [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>

Is there an example htacess I should have or some server setting. I am using PSek Hosting (Incsub) basic install, I didn’t touch a thing. I had the same problem before upgrading to 3.31

[attachments are only viewable by logged-in members]

  • aecnu
    • WP Unicorn

    Greetings bangfruit,

    Thank you for being a WPMU Dev member!

    rozani is spot on about the second site link and not being able to see the htaccess file.

    In addition, in the htaccess file you are showing you mod security rules should be first in line:

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

    RewriteEngine On
    RewriteBase /

    #uploaded files
    RewriteRule ^(.*/)?files/$ index.php [L]
    RewriteCond %{REQUEST_URI} !.*wp-content/plugins.*
    RewriteRule ^(.*/)?files/(.*) wp-includes/ms-files.php?file=$2 [L]
    RewriteRule ^(.*/)?avatar/(.*) wp-content/avatar.php?file=$2 [L]
    RewriteRule ^(.*/)?sitemap.xml wp-content/sitemap.php [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]

    and last but not least, if you are sure that it is the htaccess file, and the second site is OK, why have you not copied the second sites htaccess file to the first?

    Please let us know if this does not resolve your problem by reopening this ticket below marking it as not resolved (or else we’ll miss it!). In addition, please post any new symptoms or errors if applicable.

    Thanks both of you for being WPMU Dev members!

    Cheers, Joe :slight_smile:

  • bangfruit
    • Design Lord, Child of Thor

    Here’s the other htaccess

    RewriteEngine On
    RewriteBase /8082/
    RewriteRule ^index.php$ - [L]

    # uploaded files
    RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L]

    # add a trailing slash to /wp-admin
    RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]

    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule ^[_0-9a-zA-Z-]+/(wp-(content|admin|includes).*) $1 [L]
    RewriteRule ^[_0-9a-zA-Z-]+/(.*.php)$ $1 [L]
    RewriteRule . index.php [L]

    How could it be the site when it has been freshly installed by provider?

    It even has the problem with no plug-ins activated.

    Other themes are not giving me this issue.

  • Arun Basil Lal
    • New Recruit

    Here is what my .htaccess looks like, if that would help with anything:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    # END WordPress

    Arun Basil Lal