sy-records / sync-qcloud-cos

💾 使用腾讯云对象存储服务COS作为附件存储空间的WordPress插件。https://wordpress.org/plugins/sync-qcloud-cos/
https://qq52o.me/2518.html
Apache License 2.0
148 stars 18 forks source link

自定义域名失效 #55

Closed Mdreame closed 11 months ago

Mdreame commented 11 months ago

已配置

预期访问资源的链接是 example.com/ ,以前上传的资源在WordPress后台可以正常显示。

但是今天突然失效了,检查腾讯云COS存储桶发现又自动创建了 wp-content/uploads 路径。

新上传的图片不显示预览,必须以 example.com/wp-content/uploads/ 才可访问。

重新安装后仍然无效。

sy-records commented 11 months ago

插件一直支持的是自定义域名中需要包含上传路径,也就是url前缀的配置项需要填写为http://example.com/wp-content/uploads这种的。

如果你要保存在根目录,那上传路径就配置为.

Mdreame commented 11 months ago

插件一直支持的是自定义域名中需要包含上传路径,也就是url前缀的配置项需要填写为http://example.com/wp-content/uploads这种的。

如果你要保存在根目录,那上传路径就配置为.

image 是这样配置对吧? 你说的上传路径就是这里的本地文件夹。

我以为本地文件夹必须填 wp-content/uploads ,从这里读取数据。

现在行了, 关闭了。多谢你。