drisate Posted March 4, 2009 Share Posted March 4, 2009 hey guys i am trying to make shorter URL's to view my users profile instead of index.php?option=com_comprofiler&task=userProfile&Itemid=0&user=22 it would be 22.beta.***.org This is my .htaccess file 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 have the DNS set up for wild card ... but when i try to acess the "sub sub domain" i get a 404 page not found error ... Quote Link to comment https://forums.phpfreaks.com/topic/147834-solved-hmm-virtual-domain-not-working/ Share on other sites More sharing options...
drisate Posted March 4, 2009 Author Share Posted March 4, 2009 in case others has this prob this is what i did RewriteEngine on RewriteCond %{HTTP_HOST} !^www\.beta\.***\.org$ [NC] RewriteCond %{HTTP_HOST} !^beta\.***\.org$ [NC] RewriteCond %{HTTP_HOST} !^$ [NC] RewriteCond %{HTTP_HOST} ^([^\.]+)\.beta\.***\.org$ [NC] RewriteRule ^(.*)$ http://beta.***.org/index.php?mod=save&user=%1 [R=301,L] Quote Link to comment https://forums.phpfreaks.com/topic/147834-solved-hmm-virtual-domain-not-working/#findComment-776363 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.