Good afternoon! There are two domains, one in the zone. Ru the other in. Com. It would be desirable that the domain in a zone .com became the main. But now the site is set up so that it is redirected to the English version of the site in the .ru zone. Already perekvyryla entire Internet and the entire. Htaccess file, to the extent that completely rewrote it. Does not help. What's the catch? Maybe the redirect is configured somewhere else? Or still I do not correct the code?
# Friendly URLs RewriteEngine On RewriteBase / #RewriteRule $ http://yandex.ru/ [R=301,L] # Fix Apache internal dummy connections from breaking [(site_url)] cache RewriteCond %{HTTP_USER_AGENT} ^.*internal\ dummy\ connection.*$ [NC] RewriteRule .* - [F,L] # Exclude /assets and /manager directories from rewrite rules RewriteRule ^(manager|assets) - [L] RewriteCond %{HTTP_HOST} ^store.com$ [NC] RewriteRule ^(.*) http://store.ru/en/$1 [R=301,L] # Redirect from mydomain.com/rootname to mydomain.com/rootname/ RewriteRule ^en$ en/ [R=301,L] RewriteRule ^ru$ ru/ [R=301,L] # The Friendly URLs part RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^en/(.*)$ index.php?q=$1 [L,QSA] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^ru/(.*)$ index.php?q=$1 [L,QSA] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php?q=$1 [L,QSA] #Action php5.3-script /cgi-bin/php5.3.cgi #AddType php5.3-script .php AddDefaultCharset utf-8 AddType 'text/html; charset=utf-8' .html .htm .shtml