apache - handle subdomains through .htaccess file in php -
i'm building web portal in each user have vanity url's defined during registration, when try access vanity url's need sub-domain name & url should remain same. let's discuss in detail.
let's have main domain "www.mymaindomain.com". user "abc" registered portal & vanity (sub domain ) url's "abc" user "abc.mymaindomain.com". when hits url "abc.mymaindomain.com" should show him home page additional info related profile. have subdomain name "abc" url processing profile information on display page. please me,
thanks in advance.. srinivasu.
this rtm, have @ virtual user hosts example here:
rewriteengine on rewritecond %{http_host} ^www\.[^.]+\.host\.com$ rewriterule ^(.+) %{http_host}$1 [c] rewriterule ^www\.([^.]+)\.host\.com(.*) /home/$1$2
Comments
Post a Comment