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