PHP脚本上的“安全连接失败” SSL错误取决于GET参数?

时间:2018-11-12 06:41:47

标签: php wordpress ssl https

我正在使用带有强制HTTPS的Wordpress(在wp-config.php级别),并且https://mysite.example/wp-admin/admin.php网址有一个奇怪的问题。

https://mysite.example/wp-admin/admin.php?page=Headers上查看主题的标题编辑器部分时,SSL成功。但是,如果添加了另一个变量,即https://mysite.example/wp-admin/admin.php?page=Headers&item_name=Site+Header&item_id=default_topbar__languages,则chrome和Firefox在多个设备上的SSL连接将失败。 Secure Connection Failed: The page you are trying to view cannot be shown because the authenticity of the received data could not be verified.

我的第一个直觉是不应该发生这种情况,因为URL指向同一个文件-在建立SSL连接之前,该文件应该没有机会执行(更改结果)。

状态栏在“等待服务器”,“执行TLS握手”和“查找站点”之间循环。

有人不知道是什么原因会导致在特定页面上发生这种行为-仅当添加GET参数时?我已经尝试检查SSL证书是否有效(它是有效的),以及.htaccess中是否存在任何奇怪的循环(没有)。

我是否认为参数不应该有任何影响,因为在建立SSL之前脚本无法执行?

谢谢!

修改 该客户端位于共享主机(Godaddy)上,因此我看不到任何虚拟主机或配置文件。但是.htaccess文件如下:

RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
RewriteRule ^index\.php$ - [L]

# add a trailing slash to /wp-admin
RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
RewriteRule ^wp-admin$ wp-admin/ [R=301,L]

RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
RewriteRule ^ - [L]
RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
RewriteRule ^(wp-(content|admin|includes).*) $1 [L]
RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
RewriteRule ^(.*\.php)$ $1 [L]
RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
RewriteRule . index.php [L]
RewriteCond %{HTTP_HOST} ^my\-site\.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.my\-site\.com$
RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
RewriteRule ^testing$ "http\:\/\/my\-site\.com\/" [R=301,L]
RewriteCond %{HTTP_HOST} ^my\-site\.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.my\-site\.com$
RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
RewriteRule ^us$ "http\:\/\/my\-site\.com\/" [R=301,L]
RewriteCond %{HTTP_HOST} ^my\-site\.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.my\-site\.com$
RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
RewriteRule ^us\/ja\/$ "https\:\/\/my\-site\.com\/ja\/" [R=301,L]

0 个答案:

没有答案