vForums Support > Programming & Coding :: Programming Discussion :: > .htaccess, subdomains?

.htaccess, subdomains? - Posted By I Anoop I (anoop) on 25th Feb 08 at 10:22pm
How would I do that? I made a forum script that hosts multiple forums on one server, but I want to automatically create virtual subdomains.

Re: .htaccess, subdomains? - Posted By ajay (ajay) on 25th Feb 08 at 11:51pm
Just use mod_rewrite {Tongue Out} .

Re: .htaccess, subdomains? - Posted By Dylan (dylan) on 26th Feb 08 at 12:07am
setup a wildcard DNS entry

if your using cPanel go into the subdomain manager and enter * as the subdomain, that should work.

Then find a way to split the domain grabbing the subdomain using it as a username and using that to query the database.