• Resolved technicalcrap

    (@technicalcrap)


    Sub-domain Multisite install

    Done a pile of reading and found Sites->Edit-Settings. Changed Uploads Use Yearmonth Folders from a 1 to a 0(zero). Image is now uploaded to wp-content/blogs.dir/33/files, instead of wp-content/blogs.dir/33/files/2012/10, as it is supposed to. However, the image is not displayed. So, I’m missing something. What that is I need help with.

    ty

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

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    Is the image trying to go to sub.domain.com/files/2012/10 ?

    Thread Starter technicalcrap

    (@technicalcrap)

    No, it is going to sub.domain.com/files/my_missing_image.jpg

    I ftp in and the file is there.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    Er. Sorry, right. My bad, that’s what I meant!

    What’s in your .htaccess?

    Thread Starter technicalcrap

    (@technicalcrap)

    RewriteEngine On
    RewriteBase /
    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]
    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    Well that isn’t the right .htaccess for subdomains 😀

    # 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
    Thread Starter technicalcrap

    (@technicalcrap)

    I posted the htaccess just before going to bed and noticed it looked wrong…but it was working?!

    So, I put the correct htaccess up and now half my sites aren’t displaying images. Trying to make a new post and with 0 or 1 it doesn’t matter it isn’t working.

    Any thoughts?

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    Half? Only half? *blink*

    Thread Starter technicalcrap

    (@technicalcrap)

    Okay, 60/40. lol

    I gave up on the issue. It is htacess related and doesn’t want to co-operate. So, I restored from backups and will have to export and do a fresh install.

    /closed

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    FWIW a partial display speaks to your server setup :/ .htaccess is agnositic, in that it just runs, and when it doesn’t, it’s due to httpd.conf not having the right permissions (most of the time). If it partly works, then I wonder if your Vhosts settings aren’t blanket for your wildcard subdomains.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Uploads Change from 1 to 0 Image Not Displaying’ is closed to new replies.