drisate Posted March 3, 2009 Share Posted March 3, 2009 Hey guys i need to create a virtual subdomain for a referal systeme domain.comindex.php?user=Joe123 Should be accessible by going at Joe123.domain.com How do i set my htacess for that? Quote Link to comment Share on other sites More sharing options...
drisate Posted March 3, 2009 Author Share Posted March 3, 2009 Found it thx RewriteEngine On RewriteCond %{HTTP_HOST} !^www\.mydomain.com RewriteCond %{HTTP_HOST} ([^.]+)\.mydomain.com RewriteRule ^(.*)$ /profile.php?mid=%1 Quote Link to comment Share on other sites More sharing options...
drisate Posted March 3, 2009 Author Share Posted March 3, 2009 nope ... not working ... RewriteEngine On RewriteCond %{HTTP_HOST} !^www\.beta.***.org RewriteCond %{HTTP_HOST} ([^.]+)\.beta.***.org RewriteRule ^(.*)$ /index.php?option=com_comprofiler&task=userProfile&Itemid=0&user=%1 I get a 404 not fount error The code should redirect 1.beta.***.com to the users profile Quote Link to comment Share on other sites More sharing options...
drisate Posted March 3, 2009 Author Share Posted March 3, 2009 By the way i do have the dns wild card set up and the .htacess is at the beginning of the domain. Quote Link to comment Share on other sites More sharing options...
dezkit Posted March 3, 2009 Share Posted March 3, 2009 Wait, what is the problem? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.