| RewriteCond %{HTTP_HOST} ^([^\.]+)\.test5\.ru$ [NC] |
| RewriteCond %{HTTP_HOST} !^www\.test5\.ru$ [NC] |
| RewriteRule ^(.*)$ http://test5.ru/g_user.php?user=%1 [R,QSA] |
| RewriteCond %{HTTP_HOST} ^([^\.]+)\.test5\.ru$ [NC] |
| RewriteCond %{HTTP_HOST} !^www\.test5\.ru$ [NC] |
| RewriteRule ^(.*)$ http://test5.ru/g_user.php?user=%1 [R,QSA] |