I correctly wrote the code transfer from one site to another domain without losing PR and Тиц (Yandex) All references to the primary http://szh.kz without www
Options +FollowSymLinks DirectoryIndex index.php <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{REQUEST_FILENAME} robots.txt$ [NC] RewriteRule ^([^/]+) $1 [L] RewriteCond %{HTTP_HOST} ^surak-zhauap\.kz RewriteRule ^(.*)$ http://szh.kz/$1 [R=301,L] RewriteCond %{HTTP_HOST} ^www.surak-zhauap\.kz RewriteRule ^(.*)$ http://szh.kz/$1 [R=301,L] RewriteCond %{HTTP_HOST} ^www\.szh\.kz$ [NC] RewriteRule ^(.*)$ http://szh.kz/$1 [R=301,L] #RewriteBase / RewriteCond %{REQUEST_URI} ^(.*)//(.*)$ RewriteRule . %1/%2 [R=301,L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^.*$ index.php?qa-rewrite=$0&%{QUERY_STRING} [L] </IfModule>
Sorry that correctly. But I write through a translator.
Welcome to the Q&A site for Question2Answer.
If you have a question about Q2A, please ask here, in English.
To report a bug, please create a new issue on Github or ask a question here with the bug tag.
If you just want to try Q2A, please use the demo site.