Virtual subdomains with .htaccess?

Status
Not open for further replies.


Hey.. I want to be able to create infinate virtual subdomains with .htaccess.. basically I want it so that if i go to:

http://[INSERT A NUMBER HERE].somesite.com/

It uses mod_Rewrite to actually load:

http://somesite.com/s.php?t=[INSERT A NUMBER HERE]

So to recap, if I go to http://243273.somesite.com/ it will use mod_rewrite to load http://somesite.com/s.php?t=243273

Anyone know how to do this? Thanks.

Whether or not that's possible, you'd still need DNS records for each of those subdomains, and Apache 1.3x will already support this without any fancy scripting. I'm really not sure what it is you're trying to accomplish but it sounds like alot of work for nothing.
Also note that it has been rumoured that Google and perhaps other search engines punish redirects.
 
Status
Not open for further replies.