Greetings. I have two domains on separate servers with wildcard dns activate to create virtual subdomains using htaccess. on a server htaccess rules works but on the other dont. code is: RewriteCond %{HTTP_HOST} !^www\.soft2click\.com$ RewriteCond %{HTTP_HOST} ^.+\.soft2click\.com$ RewriteCond %{REQUEST_URI} !^(www|ftp)$ RewriteCond %{REQUEST_FILENAME} !^/home/soft/public_html/ RewriteRule ^(.*)$ %{HTTP_HOST}$1 [C] RewriteRule ^(.*)\.soft2click\.com/ /index.php?a=prog&det=$1 [QSA,L] RewriteCond %{HTTP_HOST} ^([^\.]+)\.soft2click\.com$ [NC] RewriteRule ^purchase /index.php?a=prog&det=%1&buy Code (markup): do not understand what the problem is. if the server that goes up the code, replace the last rule: RewriteRule ^(.*) /home/soft/public_html/index.php?a=prog&det=%1 Code (markup): go, but all the links like this: h ttp: / / produs.site.com / something go to h ttp: / / produs.site.com / what is not good Please help from your side. Thanks in advance