Как правильно настроить 301 редирект для Wordpress, чтобы работала админка?
Добрый день,
заменяю сайт с MODx на WP. На прошлом сайте был настроен редирект c ibtwo.ru на assets.bibic.com (имена сайтов ненастоящие) таким образом:
# MODx supports Friendly URLs via this .htaccess file. You must serve web # pages via Apache with mod_rewrite to use this functionality, and you must # change the file name from ht.access to .htaccess. # # Make sure RewriteBase points to the directory where you installed MODx. # E.g., "/modx" if your installation is in a «modx» subdirectory. If you have # problems with your .htaccess working at all, try un-commenting the first # line above the «RewriteEngine On» directive. # # You may choose to make your URLs non-case-sensitive by adding a NC directive # to your rule: RewriteRule ^(.*)$ index.php?q=$1 [L,QSA,NC] AddDefaultCharset UTF-8 #Options +FollowSymlinks RewriteEngine On RewriteBase / # Fix Apache internal dummy connections from breaking [(site_url)] cache RewriteCond %{HTTP_USER_AGENT} ^.*internal\ dummy\ connection.*$ [NC] RewriteRule .* — [F,L] # Rewrite www.domain.com -> domain.com — used with SEO Strict URLs plugin #RewriteCond %{HTTP_HOST}. #RewriteCond %{HTTP_HOST} !^example-domain-please-change\.com [NC] #RewriteRule (.*) example-domain-please-change.com/$1 [R=301,L] # # or for the opposite domain.com -> www.domain.com use the following # >>> DO NOT USE BOTH THE ABOVE AND BELOW
заменяю сайт с MODx на WP. На прошлом сайте был настроен редирект c ibtwo.ru на assets.bibic.com (имена сайтов ненастоящие) таким образом:
# MODx supports Friendly URLs via this .htaccess file. You must serve web # pages via Apache with mod_rewrite to use this functionality, and you must # change the file name from ht.access to .htaccess. # # Make sure RewriteBase points to the directory where you installed MODx. # E.g., "/modx" if your installation is in a «modx» subdirectory. If you have # problems with your .htaccess working at all, try un-commenting the first # line above the «RewriteEngine On» directive. # # You may choose to make your URLs non-case-sensitive by adding a NC directive # to your rule: RewriteRule ^(.*)$ index.php?q=$1 [L,QSA,NC] AddDefaultCharset UTF-8 #Options +FollowSymlinks RewriteEngine On RewriteBase / # Fix Apache internal dummy connections from breaking [(site_url)] cache RewriteCond %{HTTP_USER_AGENT} ^.*internal\ dummy\ connection.*$ [NC] RewriteRule .* — [F,L] # Rewrite www.domain.com -> domain.com — used with SEO Strict URLs plugin #RewriteCond %{HTTP_HOST}. #RewriteCond %{HTTP_HOST} !^example-domain-please-change\.com [NC] #RewriteRule (.*) example-domain-please-change.com/$1 [R=301,L] # # or for the opposite domain.com -> www.domain.com use the following # >>> DO NOT USE BOTH THE ABOVE AND BELOW