using subdomains for user profile urls using php?
i was wondering how i can get users to sign up and开发者_如何学Go assign them a subdomain i.e. http://username.tumblr.com like tumblr and blogger, and why do they use subdomains, and not blogger.com/username, easy urls, thanks
You have to create a wildcard dns entry (see this question).
There are a couple reason why someone might do this.
- It's a different domain so search engines see it as a different website and assign it its own pagerank/value.
- it looks "nicer" and feels more personalized to the user.
- wildcard (*) subdomains
- because username.service.tdl is more "individual" then service.tdl/username
for an example with symfony read Advanced-Routing
精彩评论