我的页面中有几个链接。当我在 中打开页面时http://
,它工作得很好(正确地转到http://www.example.com/path/to/page
。但是当在 中打开时https://
,当我单击链接时,它却给我带来www.example.com:443/path/to/page
了 400 错误:
Bad Request
Your browser sent a request that this server could not understand.
Reason: You're speaking plain HTTP to an SSL-enabled server port.
Instead use the HTTPS scheme to access this URL, please.
我确定我的链接目标很好(我使用相对路径)。我该如何解决这个问题?