Forum Moderators: phranque

Message Too Old, No Replies

Handling subdomains with wildcard domain names

         

thatsme

12:18 pm on Jun 17, 2009 (gmt 0)

10+ Year Member



I have a shared hosting account where I can host as many sites as I can, they have given me a root directory where root .htaccess is uploaded and works for all domains (directories under root).

Now I want to create a virtual subdomain "links".anydomain.com which should point to a different directory under root, so I can use same links script for all domains using links.anydomain.com url.

I am looking for a mod_rewrite for this, if it is possible. The directory structure I have is somthing like this:

¦_ public_html
__¦_ .htaccess
__¦_ anydomain1.com
____¦_ .htaccess
__¦_ anydomain2.com
__¦_ anydomain3.com
__¦_ anydomain4.com
__¦_ anydomain5.com

etc.