Cause WordPress.com is using Multisite, and people just register and get a site that way. The site’s generated on the fly.
Hi, Ipstenu! Thanks for mentioning Multisite. I wasn’t using it but now I find it really convenient! However I encountered another problem regarding registered users uploading media. When they upload media(either photo or music), they successfully show up in my server, but users can’t view them at all…. Could you help me look at this problem first, or should I start new thread?
I think this has to do with subdomain because when I install MU with subfolder option, everything works perfectly.
Some details:
My website domain is “bluewhalefamily.com”
For example if a user creates a new site called “icecream.bluewhalefamily.com”
When she upload media, wordpress shows that the photo is stored here:
https://icecream.bluewhalefamily.com/files/2012/04/icecreamsphoto.jpg
But actually the photo is stored here in the server:
https://bluewhalefamily.com/wp-content/blogs.dir/9/files/2012/04/icecreamsphoto.jpg
So if I type in the second (real) url, I’m able to open that photo, and the first url gives me 404 error.
My guess is there is something wrong with my redirection setup.
I believe I did follow the instruction correctly when setting up Mu, still here is the .htaccess file:
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]
I also tried to change folder permission of blogs.dir and wp-content from 755 to 777 (I feel I shouldn’t do that, and I changed it back)
Really appreciate anyone’s help. Thank you!