开发者

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


  1. You have to create a wildcard dns entry (see this question).

  2. There are a couple reason why someone might do this.

    1. It's a different domain so search engines see it as a different website and assign it its own pagerank/value.
    2. it looks "nicer" and feels more personalized to the user.


  1. wildcard (*) subdomains
  2. because username.service.tdl is more "individual" then service.tdl/username

for an example with symfony read Advanced-Routing

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜