Forum Moderators: rogerd

Message Too Old, No Replies

Setting up username.example.com in Drupal?

         

wickedmoon

11:32 pm on Sep 22, 2007 (gmt 0)

10+ Year Member



I've been looking into setting up user subdomains, but I haven't found any information on how to do this with Drupal. I'm not sure what the options are yet, but it seems to be either setting up real subdomains in DNS or else using rewrite. Has anyone figured out the best way of doing this with Drupal? I don't think any modules are available for this, or even if it's possible with a module. I believe it would require some configuration of the server in addition to setting up Drupal.

I would have gone with domain.com/username, which is easy enough, but I've come round to thinking most users would prefer the subdomain option if given the choice. I read a few comments about users feeling more part of the site that way. If anyone is trying to figure it out and possibly wants to develop something together, let me know.

Jason

rogerd

8:29 pm on Sep 26, 2007 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Hmmm, apparently nobody has an idea on this one, wickedmoon. Perhaps the Drupal community could help you. Good luck!

jtara

9:46 pm on Sep 26, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You should be able to use a wildcard in DNS along with mod_rewrite. (You could also define each user in DNS, but that's an awful lot of trouble - use a wildcard.) You will also need to do some configuration in your web server and Drupal itself.

It's not an either-or. You need all four.

But it's really no different than any other "user-friendly" URL scheme. You need mod_rewrite to rewrite URLs to Drupal's internal file scheme. And you need to have Drupal modify generated URLs to fit your user-friendly scheme.