WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] mutlisite images not working. (5 posts)

  1. Mr. Bigsby
    Member
    Posted 3 years ago #

    I've downloaded and reinstalled wordpress via dashboard twice. I updated the network twice. I downloaded and manually uploaded the files via FTP twice.

    for some reason the image uploader on the subdomain is not working. I can not see their thumbnails in Media Library. However If I go to edit the image within wordpress I can see the image to crop, rotate, etc. If I save the image I can no longer see it.

    I've tried multiple files as well.

    Does anyone have any advance? My .htacess is exactly what it says it needs to be in Dashboard > Tools > Network.

    The uploader was working before I enable multisite.

    I looked around through the posts on the forum and most of them show the urls being wrong. I can not see the image in a browser, but I can see it in the ftp directory and download and view the file w/o a problem.

    the url is:
    http://subdomain.website.com/files/2010/11/3-logo.jpg

    the image uploader on the main url is working. so this is a problem with the subdomains.

    any ideas?

  2. Mr. Bigsby
    Member
    Posted 3 years ago #

  3. What's in your .htaccess? I know you said it's what it says, but let's just make sure.

    Also, I'm moving this to the MultiSite forum.

  4. Mr. Bigsby
    Member
    Posted 3 years ago #

    # -FrontPage-
    #IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*
    #<Limit GET POST>
    #order deny,allow
    #deny from all
    #allow from all
    #</Limit>
    #<Limit PUT DELETE>
    #order deny,allow
    #deny from all
    #</Limit>
    #AuthName xxxxx.com
    #AuthUserFile /home/xxxx/public_html/_vti_pvt/service.pwd
    #AuthGroupFile /home/xxxxx/public_html/_vti_pvt/service.grp

    # 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

  5. Well ... there's your problem :) The line you commented out under # uploaded files is the one that's breaking ;) Use this:

    # 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

    And yeah, that's ALL you have to have in your .htaccess. All the lines that start with # are comment lines, they don't do anything, so you can just remember them. I would keep the comments for WordPress as they help you debug later.

Topic Closed

This topic has been closed to new replies.

About this Topic