How to change upload directory of main site to blogs.dir
-
I’m working on a WordPress 3.0 multisite aka network install on my dev machine (OS X, MAMP stack, svn checkout from
https://core.svn.www.ads-software.com/tags/3.0
). I’m confused about the differences between the upload directory for the main site of a network install, and additional sites.For instance, in a fresh install that I just tried, uploading an image to the main (first) site gives me a path like this:
/wp-content/uploads/2010/07/image.jpg
…and indeed, the image is in
wp-content/uploads/2010/07
.Uploading an image to an additional (the second) site gives me a path like this:
/files/2010/07/image.jpg
…and of course the image is in
blogs.dir/2/files/2010/07
.What I would like to do is change the behavior of the primary/first blog to be like that of the secondary blogs – files are uploaded to blogs.dir, but the paths are the nice, more secure, rewritten /files versions. When I change the Upload Path for the primary blog (in Super Admin > Sites > Edit) to
wp-content/blogs.dir/1/files
, subsequent media uploads go to the proper subdirectory of blogs.dir, however the path in the uploader (and therefore the resulting img src) is not the nice rewritten /files path.E.g. after changing upload_dir on the primary blog, the source of an uploaded image is:
/wp-content/blogs.dir/1/files/2010/07/image.jpg
And I would like it to be:
/files/2010/07/
Is this possible?
Thanks,
Nathan
- The topic ‘How to change upload directory of main site to blogs.dir’ is closed to new replies.