Forum Moderators: phranque

Message Too Old, No Replies

.htaccess rewrite /dir/ to subdomain

         

Hop_Hop

3:34 pm on Dec 27, 2005 (gmt 0)

10+ Year Member



i have a free hosting script that creates directories for users . For example a user "test" registers for an account .... and that script makes a directory called "test" in the main domain directory. So URL for user test will be [domain.com...] .

Ok, everything good for now, but. I want to provide subdomains for this using rewrite. so the previously mentioned URL to be [test.domain.com...]

I mention , domain.com has wildcards, so the only thing to do is that .htaccess rule wich i don`t know it.

does anyone has something like this?

tank you!

jdMorgan

11:26 pm on Dec 27, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



These previous threads [google.com] will probably help you get started.

Jim