안녕하세요. 내 웹 사이트에서 내 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>
http에서 잘 작동하는 웹 사이트. 문제는 Google을 통해 웹 사이트에 들어가려고 할 때입니다. 거기에 SSL 연결이 있습니다. –
나는 나의 wordpress를 검사했다, 주소는 HTTP이다. –