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 ... 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] 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
Archived
This topic is now archived and is closed to further replies.