WP内容前缺少斜线&未显示某些上传的图像?
例如:URL:www.example.comwp-content / uopload / 2017
在这个网站上有些图片不起作用
#1
可能对你OP来说有点晚了, 但是遇到类似问题并遇到这篇文章的任何人, 这可能是由于Web服务器中的重定向规则所致。
我将http重定向到https, 但是我的规则在新网址中缺少斜杠, 例如对于Apache:
<VirtualHost *:80>
Redirect permanent / https://www.example.com
...
通过添加斜杠来解决此问题:
<VirtualHost *:80>
Redirect permanent / https://www.example.com/
...
来源:
https://www.srcmini02.com/63923.html
微信公众号
手机浏览(小程序)
Warning: get_headers(): SSL operation failed with code 1. OpenSSL Error messages:
error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in
/mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line
57
Warning: get_headers(): Failed to enable crypto in
/mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line
57
Warning: get_headers(https://static.shanhubei.com/qrcode/qrcode_viewid_41612.jpg): failed to open stream: operation failed in
/mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line
57