I’m working on a WordPress 3.0 multisite aka network install on my dev machine (OS X, MAMP stack, svn checkout from
http://core.svn.wordpress.org/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:
…and indeed, the image is in
Uploading an image to an additional (the second) site gives me a path like this:
…and of course the image is in
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:
And I would like it to be:
Is this possible?
- The topic ‘How to change upload directory of main site to blogs.dir’ is closed to new replies.