2014-12-30 70 views
-1

我安裝SSLwordpresshttps只顯示了admin panel,我想表明它在所有前端頁面我有加.htaccess文件的根目錄,但沒有這樣做。HTTP重定向到https(僅管理員面板沒有前端)

<IfModule mod_rewrite.c> 
    RewriteEngine On 
    RewriteBase/

    RewriteRule ^index\.php$ - [L] 
    RewriteCond %{REQUEST_FILENAME} !-f 
    RewriteCond %{REQUEST_FILENAME} !-d 
    RewriteRule . /index.php [L] 
</IfModule> 
+1

顯示你'.htaccess'請。 – vaso123

+0

考慮在問題描述中添加'.htaccess'的內容。 –

+0

''' RewriteEngine敘述On' RewriteBase/ 重寫規則^索引\ .PHP $! - [L] 的RewriteCond%{REQUEST_FILENAME} -f 的RewriteCond%{REQUEST_FILENAME} -D- 重寫規則。 /index.php [L]

回答

0

中的wp-config.php文件定義了這個

<?php define('FORCE_SSL_ADMIN', true); ?> 
+0

欲瞭解更多詳情,請點擊這裏http://codex.wordpress.org/Administration_Over_SSL –

+0

但這是管理員面板的權利? –

+0

是的!只需要在wordpress中改變你的地址url - >設置用https替換http。 –