Wordpress多站点转移到子域

时间:2017-11-22 14:50:33

标签: wordpress dns transfer

大家。 谁可以帮助解决我的问题。

我将我的多站点转移到子域名,但在所有标准操作之后,我遇到了问题:我的网站网址如“subdomain.domain.com”将我重定向到原始网站“domain.com”

这是我.htaccess文件的初始部分

<IfModule pagespeed_module>
    ModPagespeed on
    ModPagespeedEnableFilters prioritize_critical_css,rewrite_css,combine_css,combine_heads
    ModPagespeedEnableFilters insert_dns_prefetch,local_storage_cache,extend_cache
    ModPagespeedEnableFilters rewrite_javascript,combine_javascript,make_google_analytics_async
    ModPagespeedEnableFilters fallback_rewrite_css_urls
    ModPagespeedEnableFilters inline_google_font_css,flatten_css_imports
    ModPagespeedEnableFilters rewrite_images,recompress_images,responsive_images,resize_images
    </IfModule>
    RewriteCond %{HTTP_HOST} ^notefornotebooks\.co\.uk$ [OR]
    RewriteCond %{HTTP_HOST} ^www\.notefornotebooks\.co\.uk$
    RewriteRule ^/?$ "https\:\/\/notefornotebooks\.com" [R=301,L]
    SetEnv PHPRC /home/virtalen/public_html/php.ini

    RewriteEngine On

    RewriteEngine On
    RewriteCond %{HTTPS} off
    RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
    RewriteCond %{REQUEST_URI} !^/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
    RewriteRule ^(.*)$ https://www.virtalent.com%{REQUEST_URI} [L,R=301]

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]

    # add a trailing slash to /wp-admin
    RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]

    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
    RewriteRule . index.php [L]
    </IfModule>

    # END WordPress

0 个答案:

没有答案