WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Image upload problems for subfolder multisite (3 posts)

  1. zerkaloolakrez
    Member
    Posted 1 year ago #

    Hello!
    I have subfolders-type multisite and have exectely same problem like this man with subdomains variant.

    This is my .htaccess:

    # 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]
    # END WordPress

    Upload Path URL: http://mysite.com/wp-content/blogs.dir/#blog_id/files
    Upload Path: wp-content/blogs.dir/#blog_id/files
    Fileupload Url: http://mysite.com/blog_name/files/

    Thank you in advance!

  2. zerkaloolakrez
    Member
    Posted 1 year ago #

  3. zerkaloolakrez
    Member
    Posted 1 year ago #

    OK

Topic Closed

This topic has been closed to new replies.

About this Topic