Jump to content

[SOLVED] Hmm? Virtual domain not working?


drisate

Recommended Posts

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

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]

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.