2016-10-19 7 views
0

안녕하세요. 내 웹 사이트에서 내 SSL 인증서를 제거합니다. 데이터베이스가 HTTPS를 표시하지 못하도록 수정하고 htaccess 파일에서 필요한 줄을 제거했습니다. 하지만 지금은 - 내 워드 프레스 웹 사이트에 들어가려는 사람이 어떻게 오류 메시지를 받습니까 (SSL 때문에 ...) 어떻게 HTTPS에서 HTTP로 사용자를 전달할 수 있습니까? 아래Google 검색에서 http로 https를 리디렉션

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로 표시하고있는 결과일까요?

나는 당신이 확신하지만 당신은 당신이 데프 변경했습니다 확인할 수 있습니다

설정> 일반 설정> 워드 프레스 주소 (URL)

설정> 일반 설정> 사이트 주소 (URL)

당신은 단순히 HTTP 모든 HTTPS 연결을 강제로 찾고 있다면
+0

http에서 잘 작동하는 웹 사이트. 문제는 Google을 통해 웹 사이트에 들어가려고 할 때입니다. 거기에 SSL 연결이 있습니다. –

+0

나는 나의 wordpress를 검사했다, 주소는 HTTP이다. –

0

는 당신은 당신의 .htaccess

RewriteEngine On 
RewriteCond %{HTTPS} on 
RewriteRule^http://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] 
에 다음을 사용할 수 있습니다

기본적으로 귀하의 웹 사이트가 열리고 https이 켜져 있다면 이는 http으로 바뀔 것입니다.

+0

내 웹 사이트에서 HTTPS가 비활성화되어 있습니다. 만료 된 인증서가 있습니다 –

+0

실제 오류 메시지는 무엇입니까? – Lag

+0

내 웹 사이트가 cloudflare와 동기화됩니다. 내가 쓰는 메시지는 클라우드 플레어 (cloudflare) 서비스에서 웹 사이트의 캐시 된 버전이다. –

관련 문제