By pixor on
I am planning my first Drupal website.
To explain better, it will be a website for bands/musicians, free, and I would like for a band to sign up, then get their own blog, forum and photo gallery. If possible, I would like to be able to make their "home page" or blog be accessible as band_name.my_domain.com, and therefore their blog entries etc to have urls with band_name.my_domain.com in them.
I hope I have explained myself properly :-)
Can anyone tell me if this is possible with Drupal?
Thanks,
Mike.
Comments
Uhh, it's not Drupal's work
You have to configure these things in your cPanel and write proper php code. Drupal offers you content management, not server management. :)
hmm... sounds like a good
hmm... sounds like a good workable idea.
Marcel
http://www.MacMiniForums.com/forum/
Use rewrite rules
I think U need to use rewrite rules in .htaccess. I haven't tried and i don't know how to do. I am looking for the same solution. If you cme up with a solution post it here.
Sunny
www.gleez.com
Something to get you started
rewrite might work as someone suggested. I think the following rule (with some tweaking) may do the job:
Deepak
I'd like to see someone try
As soon as i get the time, I'll try this. If anyone get's this to work, let us know.
btw... dont forget to request wildcards subdomains on your domain.
That's how I got automatic subdomains working on my custom built diary host http://diarist.com.
Marcel
http://www.MacMiniForums.com/forums/
http://BlogNetworkForum.com
http://01wholesale.com
Seems like you could do that
Seems like you could do that with multi-site. You'd need to create DNS ptrs for the subdomains, add the subdomains to the apache conf through cpanel (as aliases. The line in /etc/httpd/conf/httpd.conf looks like "ServerAlias subdomain.my_domain.com), then create directories (for each) of site_html_root/sites/subdomain.my_domain.com and edit these two variables for the settings.php file inside
$base_url = 'http://subdomain.my_domain.com';
$conf = array(
'site_frontpage' => 'blog/user/whatever',
);
As far as I know (I'm not an expert) that's all you need to do. It's still a manual process, though. Unless you write a script to automate it and wildcard the DNS ptr. Which I don't know how to do. Good luck
that might work... but it's
that might work... but it's not automated
Redirect
I got an idea, how about this:
- create their band subdomain (myband.yourdomain.com)
- set up a php script that redirect http://myband.yourdrupal.com to the blog (http://www.yourdrupal.com/blog/id)
It's kinda very simple.
How about that?
Tha's what Depaks mod
Tha's what Depaks mod rewrite attempts to do. I think it's an excellent start.