Im trying to get this to work
http://domain.com/members/USER
to become
http://USER.domain.com
i got the code below but it doesnt work, i also added a wild card to dns. All i get is the apache page.
The only way we got this to work is with http://www.domain.com, in that case it does forward to /home/user-directory/www/members/www
Anyone got any ideas??
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www\.|^([a-z0-9-]+)\.userdomain\.com$
RewriteRule ^(.+) %{HTTP_HOST}$1 [C]
RewriteRule ^([a-z0-9-]+)\.userdomain\.com/(.*) /home/user/public_html/members/$1/$2
RewriteRule ^www\.([a-z0-9-]+)\.usterdomain\.com/(.*) /home/user/public_html/members/$1/$2
http://domain.com/members/USER
to become
http://USER.domain.com
i got the code below but it doesnt work, i also added a wild card to dns. All i get is the apache page.
The only way we got this to work is with http://www.domain.com, in that case it does forward to /home/user-directory/www/members/www
Anyone got any ideas??
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www\.|^([a-z0-9-]+)\.userdomain\.com$
RewriteRule ^(.+) %{HTTP_HOST}$1 [C]
RewriteRule ^([a-z0-9-]+)\.userdomain\.com/(.*) /home/user/public_html/members/$1/$2
RewriteRule ^www\.([a-z0-9-]+)\.usterdomain\.com/(.*) /home/user/public_html/members/$1/$2