Support » Networking WordPress » problemi in uploading image

  • stefanocps


    hello i know it is a common problem but can’t fix it
    i have 2 sites, subfolders style
    the first site works ok
    the second size have problems in upoading media
    wethever i upload it correctly goes in the folder
    but it is not shown
    in media menu, if i edit the file i have the url

    the site and subsite are correct..
    dont’0 kknow what to do..i have tried several .htaccess file i have found in web, but no change at all

    this is what i use now

    # BEGIN WordPress
    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]
    RewriteRule ^([_0-9a-zA-Z-]+/)?siteN/files/(.+) wp-content/blogs.dir/N/files/$2 [L]
    # END WordPress

    any hint?
    thanks a lot

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


    🏳️‍🌈 Halfelf Rogue & Plugin Review Team Rep

    Nothing’s wrong there, it’s suppose to be AND it’s supposed to upload to /wp-content/blogs.dir/2/files/

    That’s how it works.

    What you have going on is WP can’t parse this line in your .htaccess:

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

    So that normally means you don’t have AllowOverride set to All on your server.

Viewing 1 replies (of 1 total)
  • The topic ‘problemi in uploading image’ is closed to new replies.