• Resolved topracer6969

    (@topracer6969)


    Hi All,

    I’m using WP 3.0.1 as well as the most current version of Buddypress and i’ve got my MU site setup to use subdomains.

    I’ve just noticed that on my subdomain sites, none of my images seem to show up. In the Media Installer….it acts like and looks like it’s uploaded the file….AND, I can see the file in the directory when I FTP in; however, when the image is called, it’s just not showing up on the page.

    Here is an example page:
    http://charlotte.jobs.localjobs.com/ (see the placehold above “NEWS”…that should be an image with the path of:
    http://charlotte.jobs.localjobs.com/files/2010/10/localjobscom_250W_whiteback.gif

    The path created for the file seems to be wrong as I can’t find the image there when I try to paste that URL directly into a browser window.

    Here is my .htaccess file info:
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_URI} ^/(dh_phpmyadmin|stats|failed_auth\.html).*$ [NC]
    RewriteRule . – [L]
    </IfModule>

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

    Any help would be appreciated. Much thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    The second half of your .htaccess is what’s doing it.

    That said, I’m not really sure if the top half is needed. Assuming it is, try this:

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_URI} ^/(dh_phpmyadmin|stats|failed_auth\.html).*$ [NC]
    RewriteRule . - [L]
    
    # BEGIN WordPress
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    
    # uploaded files
    RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L]
    
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule . index.php [L]
    # END WordPress
    </IfModule>
    Thread Starter topracer6969

    (@topracer6969)

    Thanks ipstenu – that seemed to fix it. I agree with you that the top half is probably not needed, if I were to take it out, what would the entire new file look like?

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    Just this 🙂

    <IfModule mod_rewrite.c>
    # BEGIN WordPress
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    
    # uploaded files
    RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L]
    
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule . index.php [L]
    # END WordPress
    </IfModule>

    The lines starting with # are commented out, to make things human readable, which is why I am a huge proponent of putting them in my .htaccess file when I add things. A year later I’ll go ‘What the heck is this… OH!’

    Thread Starter topracer6969

    (@topracer6969)

    Cool. Much thanks ipstenu!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Media Uploader – Images Not Showing Up on Secondary Blogs’ is closed to new replies.