problemi in uploading image (2 posts)

  1. stefanocps
    Posted 3 years ago #

    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

  2. Nothing's wrong there, it's suppose to be http://www.demetraeproject.eu/english/files/2012/11/file.jpg 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.

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.