我的wordspress站点安装在myfolder中,它会在htaccess中自动创建代码
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /myfolder/
RewriteRule ^index\\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /myfolder/index.php [L]
</IfModule>
# END WordPress
现在,我想强制www访问我的所有链接并查找以下代码:
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\\.
RewriteRule ^(.*)$ https://www.%{HTTP_HOST}/$1 [R=301,L]
如果我把它们放在一起,那就行不通了。。有人能帮我吗?
谢谢你~~~