This page with HTTPSとthis page withoutに移動します。これはWordpressのウェブサイトで、何らかの形でURL(およびリンク先)にはHTTPS://が必要です。それ以外の場合は空白のページが表示されます。"https://"の前のURLが空白のページになるのはなぜですか?
何が起こっているのかわからないので、状況を一般化して何が起こっているのかを明確にしましょう。うまくいけば、あなたはそれを修正する方法を教えてくれるので、https://のないURLは同じページを表示しますか?/nginx.confとにリダイレクト
おそらく.htaccessの 'HTTPSで://':
サーバはマイnginx.confファイルnginxのを実行している>
を行うだろう
# HTTP -> HTTPS
server {
listen 80;
server_name ttr.nl www.ttr.nl;
return 301 https://ttr.nl$request_uri;
}
http {
client_max_body_size 100m;
}
# BEGIN W3TC Page Cache cache
location ~ /wp-content/cache/page_enhanced.*html$ {
expires modified 7200s;
add_header X-Powered-By "W3 Total Cache/0.9.4.1";
add_header Vary "Accept-Encoding, Cookie";
add_header Pragma "public";
add_header Cache-Control "max-age=7200, public";
}
location ~ /wp-content/cache/page_enhanced.*gzip$ {
gzip off;
types {}
default_type text/html;
expires modified 7200s;
add_header X-Powered-By "W3 Total Cache/0.9.4.1";
add_header Vary "Accept-Encoding, Cookie";
add_header Pragma "public";
add_header Cache-Control "max-age=7200, public";
add_header Content-Encoding gzip;
}
# END W3TC Page Cache cache
# BEGIN W3TC Browser Cache
gzip on;
gzip_types text/css text/x-component application/x-javascript application/javascript text/javascript text/x-js text/richtext image/svg+xml text/plain text/xsd text/xsl text/xml image/x-icon;
location ~ \.(css|htc|less|js|js2|js3|js4)$ {
expires 2592000s;
add_header Pragma "public";
add_header Cache-Control "max-age=2592000, public";
add_header X-Powered-By "W3 Total Cache/0.9.4.1";
}
location ~ \.(html|htm|rtf|rtx|svg|svgz|txt|xsd|xsl|xml)$ {
expires 7200s;
add_header Pragma "public";
add_header Cache-Control "max-age=7200, public";
add_header X-Powered-By "W3 Total Cache/0.9.4.1";
}
location ~ \.(asf|asx|wax|wmv|wmx|avi|bmp|class|divx|doc|docx|eot|exe|gif|gz|gzip|ico|jpg|jpeg|jpe|json|mdb|mid|midi|mov|qt|mp3|m4a|mp4|m4v|mpeg|mpg|mpe|mpp|otf|odb|odc|odf|odg|odp|ods|odt|ogg|pdf|png|pot|pps|ppt|pptx|ra|ram|svg|svgz|swf|tar|tif|tiff|ttf|ttc|wav|wma|wri|woff|xla|xls|xlsx|xlt|xlw|zip)$ {
expires 31536000s;
add_header Pragma "public";
add_header Cache-Control "max-age=31536000, public";
add_header X-Powered-By "W3 Total Cache/0.9.4.1";
}
# END W3TC Browser Cache
# BEGIN W3TC Page Cache core
set $w3tc_rewrite 1;
if ($request_method = POST) {
set $w3tc_rewrite 0;
}
if ($query_string != "") {
set $w3tc_rewrite 0;
}
if ($request_uri !~ \/$) {
set $w3tc_rewrite 0;
}
if ($http_cookie ~* "(comment_author|wp\-postpass|w3tc_logged_out|wordpress_logged_in|wptouch_switch_toggle)") {
set $w3tc_rewrite 0;
}
if ($http_cookie ~* "(w3tc_preview)") {
set $w3tc_rewrite _preview;
}
set $w3tc_ssl "";
if ($scheme = https) {
set $w3tc_ssl _ssl;
}
set $w3tc_enc "";
if ($http_accept_encoding ~ gzip) {
set $w3tc_enc _gzip;
}
set $w3tc_ext "";
if (-f "$document_root/wp-content/cache/page_enhanced/$http_host/$request_uri/_index$w3tc_ssl$w3tc_rewrite.html$w3tc_enc") {
set $w3tc_ext .html;
}
if (-f "$document_root/wp-content/cache/page_enhanced/$http_host/$request_uri/_index$w3tc_ssl$w3tc_rewrite.xml$w3tc_enc") {
set $w3tc_ext .xml;
}
if ($w3tc_ext = "") {
set $w3tc_rewrite 0;
}
if ($w3tc_rewrite = 1) {
rewrite .* "/wp-content/cache/page_enhanced/$http_host/$request_uri/_index$w3tc_ssl$w3tc_rewrite$w3tc_ext$w3tc_enc" last;
}
# END W3TC Page Cache core
#gzip via varvy.com
本当にhtaccessの問題のように聞こえます。私は少し前にSMFフォーラムで同じ問題を抱えていましたが、それが問題でした。 –
希望の結果がhttps以外のhttpsにリダイレクトされますか? httpとhttpSの両方を動作させるには?いずれにせよ、親切にhtaccessファイルを投稿してください。 –
私のサイトはSSLのみを使用したいので、URLの前に "https://"を入れても問題ありません。 –