• Resolved priyadeva

    (@priyadeva)


    Hello forum
    In my new multisite everything I upload to the media gallery is uploading in 644 permission and even when I go through the FTP and change the permission manually, still the image/file is not found by the wordpress
    Can you tell me what is wrong?
    Thank you
    Priya

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

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    Did you update your .htaccess?

    Thread Starter priyadeva

    (@priyadeva)

    Unfortunately I did…

    Thread Starter priyadeva

    (@priyadeva)

    Only the main site have the ability to upload photos to the media gallery
    It upload to this path
    http://tuch.co.il/wp-content/uploads/2012/10/1373013974.jpg

    The other sites uploading to this path
    http://itach.tuch.co.il/files/2012/10/jupgrade.png
    And I cant understand how to fix this…

    Please help
    Priya

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    The path is 100% correct.

    That path (/files/) is translated by your .htaccess to /wp-content/blogs.dir/#/files/

    1) What’s in your .htaccess?

    2) Is allowOverride set to all in your httpd.conf file?

    Thread Starter priyadeva

    (@priyadeva)

    Here is the content of my .htaccess, is something wrong with it?

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

    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

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    Okay, there’s one problem. You didn’t replace your .htaccess, you added on to it.

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    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]
    </IfModule>
    # END WordPress
    Thread Starter priyadeva

    (@priyadeva)

    O K
    I think it fixed it!!
    Thank you
    Priya

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Uploads to media gallery is not working good’ is closed to new replies.