Virtual Subdomain Problem

Using a single web hosting account to host multiple sites

Virtual Subdomain Problem

Postby Stunt » Fri Aug 22, 2008 1:06 pm

hi,
i use this code for my redirection ( for blog system )

Code: Select all
RewriteEngine on
RewriteCond %{HTTP_HOST} ^([^.]+)\.domain\.com$ [NC]
RewriteCond %1 !^(www|ftp|mail)$ [NC]
RewriteRule ^.*$ index.php?uid=%1


this is fine
when i go to http://user.domain.com i redirect into http://domain.com/index.php?uid=user
this is fine , without any problem
but ! when i go to http://www.user.domain.com i redirect to http://domain.com/index.php ! this is problem ..
if u can , help me
tanx
Stunt
 
Posts: 6
Joined: Fri Aug 22, 2008 1:01 pm

Postby Stunt » Fri Aug 22, 2008 1:26 pm

Oh sorry
my problem fixed by reading Frequently Asked Questions topic
tanx
Stunt
 
Posts: 6
Joined: Fri Aug 22, 2008 1:01 pm


Return to Domain Handling

Who is online

Users browsing this forum: No registered users and 2 guests

cron