• Resolved miguelpalazzo

    (@miguelpalazzo)


    Greetings, I’ve been using WordPress 3.0 since early beta specifically for multisite features, and it has been a great experience. However, now that I’m uploading a website on production server, I’m finding myself knocking my head against desk due to file upload path issues.

    Have two (2) sites/blogs defined, main (english) and secondary (spanish) on a subdomain installation. I also need to make uploaded files to be served from a cookie-less subdomain: static.mydomain.com, so went to site/blog on Super Admin > Sites > Edit, edited Upload Path to static/en (static/es for blog_id 2), Upload Url Path to https://static.mydomain.com/en (changed en for es for blog_id 2) and Fileupload Url to that same value. It works as intended for blog_id 1, however for 2 it doesn’t at all, it will always upload files to wp-content/blogs.dir/<blog_id>/files/ (or something like that)

    My .htaccess file is exactly the way WordPress said it should be, haven’t changed it so far.

    # 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

    Even if I dare to comment this line RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L] it does the same thing… Please help, for the moment I’m gonna leave it just like that, since this site have to be up by today, but anybody can throw in tips about this issue, I’ll learn from it ??

    Thanks in advance!

Viewing 15 replies - 1 through 15 (of 18 total)
Viewing 15 replies - 1 through 15 (of 18 total)
  • The topic ‘Issue with upload files path’ is closed to new replies.