Welcome to WebmasterWorld Guest from

Forum Moderators: Ocean10000 & incrediBILL & phranque

Message Too Old, No Replies

How to create virtual subdomain on the fly?

variables pass subdomain

10:48 pm on Jun 22, 2005 (gmt 0)

New User

10+ Year Member

joined:Aug 4, 2004
votes: 0

How can I rewrite rules to create virtual subdomains on the fly that are only used to pass variables to a PHP file?

For instance people access:


And the servers executes:


I don't pretend creating actual subdomains. It would only be a shortcut for visitors. There is going to be hundreds or thousands of names, and it's impossible to create subdomains by hand...

Is there a way to do it?


9:54 pm on June 23, 2005 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Apr 9, 2005
votes: 0

Hi calande,

Please, try using a major SE and this search: creating sub domains Apache site:webmasterworld.com

You should find a number of helpful threads, then if you can't get it to work, you can give us an idea of what you are trying, so we can help you find the right answer... We try not to 'code on demand' because that demand would quickly overwhelm the relatively small number of posters here.