Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
0 votes
860 views
in Q2A Core by

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.

Q2A version: 1.6 dev
by
Are you just trying to advertize your website?

Please log in or register to answer this question.

...