2017-04-18 43 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這是偉大的

相關問題