2016-10-19 18 views
0

こんにちは私のウェブサイトから私のSSL証明書を削除します。データベースをHTTPSの表示から修正し、htaccessファイルから必要な行を削除しました。しかし今のところ誰かが私のWordPressウェブサイトに入ってみるとどのようにエラーメッセージが出るのですか?(sslのため...)どのようにしてHTTPSからHTTPにユーザを転送できますか?以下Google検索からhttpsにhttpをリダイレクト

はhtaccessファイル:

text/x-generic .htaccess (ASCII text) 

# 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] 
</IfModule> 

# END WordPress 

# <IfModule mod_rewrite.c> 
# RewriteEngine On 
# RewriteCond %{SERVER_PORT} 80 
# RewriteRule ^(.*)$ https://www.*****.com/$1 [R,L] 
# </IfModule> 


<IfModule mod_headers.c>  
Header add Access-Control-Allow-Origin "*" 
</IfModule> 

Header unset Pragma 
FileETag None 
Header unset ETag 

## EXPIRES CACHING ## 
<IfModule mod_expires.c> 
ExpiresActive On 
ExpiresByType image/jpg "access 1 year" 
ExpiresByType image/jpeg "access 1 year" 
ExpiresByType image/gif "access 1 year" 
ExpiresByType image/png "access 1 year" 
ExpiresByType text/css "access 1 month" 
ExpiresByType text/html "access 1 month" 
ExpiresByType application/pdf "access 1 month" 
ExpiresByType text/x-javascript "access 1 month" 
ExpiresByType application/x-shockwave-flash "access 1 month" 
ExpiresByType image/x-icon "access 1 year" 
ExpiresDefault "access 1 month" 
</IfModule> 
## EXPIRES CACHING ## 


<FilesMatch "\\.(js|css|html|htm|php|xml)$"> 
SetOutputFilter DEFLATE 
</FilesMatch> 

<IfModule mod_gzip.c> 
mod_gzip_on Yes 
mod_gzip_dechunk Yes 
mod_gzip_item_include file \.(html?|txt|css|js|php|pl)$ 
mod_gzip_item_include handler ^cgi-script$ 
mod_gzip_item_include mime ^text/.* 
mod_gzip_item_include mime ^application/x-javascript.* 
mod_gzip_item_exclude mime ^image/.* 
mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.* 
</IfModule> 

答えて

0

あなたは、HTTP上であなたのサイトを訪問すれば、それは動作しますか? Googleからの結果がまだSSLとして表示されているだけですか?

私はあなたが持っていると確信していますが、デフ変更した確認することができます

設定]> [一般設定]> [WordPressのアドレス(URL)

設定]> [一般設定]> [サイトアドレス(URL)

あなたは、単に HTTPへのすべての HTTPSの接続を強制的に探しているなら
+0

ウェブサイトはhttpからうまく機能します。問題は、Googleからウェブサイトにアクセスしようとしているときです。そこにはSSL接続があります。 –

+0

私は私のワードプレスをチェックし、アドレスはHTTPです。 –

0

は、あなたはあなたの.htaccess

RewriteEngine On 
RewriteCond %{HTTPS} on 
RewriteRule^http://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] 
に次のように使用することができます

基本的に、あなたのウェブサイトが開き、httpsがONの場合、それはhttpになります。

+0

私のウェブサイトではHTTPSが無効になっています。期限切れの証明書があります –

+0

実際に表示されるエラーメッセージは何ですか? – Lag

+0

私のウェブサイトはcloudflareと同期します。クラウドフレアサービスからウェブサイトのキャッシュされたVerです。 –

関連する問題