ReWrite rule for files of a previously standalone blog moved to network

A moved a standalone wordpress install to be one of a network, but the possibility to access the uploaded files with the same URL is need to be kept.

I’m trying to get the following rewrite rule to work, without success:

Read More
RewriteCond %{HTTP_HOST} ^(.*)?domain.com
RewriteRule ^/wp-content/uploads/(.*)$ /wp-content/blogs.dir/3/files/$1 [L]

What do I miss?

Related posts

Leave a Reply

1 comment

  1. OK, I’ve found it by testing all of the combinations, I could imagine:

    RewriteCond %{HTTP_HOST} ^(.*)domain.com
    RewriteRule ^wp-content/uploads/(.*)$ wp-content/blogs.dir/3/files/$1 [L]