RewriteCond %{HTTP_HOST} ^site\.com$ [NC] RewriteRule ^(.*)$ http://site.ru%{REQUEST_URI} [L,R=301]