wordpress多站点子目录与www打开力

时间:2018-11-12 07:02:40

标签: wordpress .htaccess multisite

我遵循此代码

# BEGIN WordPress

RewriteEngine开启

RewriteBase /

RewriteRule ^ index.php $-[L]

RewriteRule ^([_ 0-9a-zA-Z-] + /)?files /(.+)wp-includes / ms-files.php?file = $ 2 [L]

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。*)$ 1 [L]

RewriteRule ^ [_ 0-9a-zA-Z-] + /(。*。php)$ $ 1 [L]

RewriteRule。 index.php [L]

在此代码中,如何将所有站点设置为https://www/domain.com

1 个答案:

答案 0 :(得分:0)

强制www:

SELECT 
    A11.ID_WEEK_YR,   
    A12.ID_PRODUCT
FROM 
    WEEKS_YR A11
    JOIN  SALES_U_YR A12
        ON (A11.ID_WEEK_YR=A12.ID_WEEK_YR)
WHERE a12.ID_PRODUCT='TOY#1';