2017-04-18 45 views
0

我正在this网站上重定向到https,除非有人以www开头并打开除主页以外的页面。例如,即使重写条件后,网站也不会重定向到https

www.demacmedia.com/work 

这里是我使用htacess文件重定向代码,

# BEGIN WordPress 
<IfModule mod_rewrite.c> 
RewriteEngine On 
RewriteBase/
RewriteRule ^index\.php$ - [L] 
RewriteCond %{REQUEST_FILENAME} !-f 
RewriteCond %{REQUEST_FILENAME} !-d 
RewriteRule . /index.php [L] 
RewriteCond %{HTTPS} off 
# Rewrite to HTTPS: 
RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] 
</IfModule> 

# END WordPress 

回答

0

我不使用任何的htaccess代码为Apache WordPress站点重定向到https。

只需更改WordPress网站网址一般设置

看一看上this plugin这是伟大的

相关问题