• I had a site installed normally, then I made it into multisites and created 3 subfolders.

    Everything is working normally on the main website, but something is wrong on subfolders, image upload is not working.

    When I upload a image, it creates the following link:
    https://regiaometropolitana.com/regiao-metropolitana-de-sao-paulo/files/2012/08/(image).jpg

    But, the right directory(that i’ve found through ftp access) is:
    public_html/wp-content/blogs.dir/10/files/2012/08/
    The first number ’10’ is for the website, and the following “2012/08” is for date, as you guys might get that, but just making it clear.

    Somehow, subfolders are messing up my links so the images do not show up. I’ve looked in several other threads but found no solution.

    My .htacess file is:

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

Viewing 6 replies - 16 through 21 (of 21 total)
Viewing 6 replies - 16 through 21 (of 21 total)
  • The topic ‘image upload is not working on subfolders’ is closed to new replies.