WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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:

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

What do I miss?

share|improve this question
up vote 0 down vote accepted

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]
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.