http 到 https 迁移后解析 SVG 文件时出现问题
Problem Parsing SVG files After http to https migration
我刚刚将 https://www.donbur.co.uk/ 转换为 https 并正在修复错误。
一个错误是 svgs 不再解析。我收到 "This XML does not appear to have any style information associated with it." 行。
例如https://www.donbur.co.uk/gb-en/css/img/menu-icon-pmr.svg
我在某些地方读到它是 HTTP 调用,但我已经检查过,所有调用都是 https。我什至有一个 RewriteRule 将所有 http 请求转换为 https。
我在这里错过了什么?
您不得更改命名空间。以下是正确的。
xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
这些不是 URL,它们只是看起来像 URL。
我刚刚将 https://www.donbur.co.uk/ 转换为 https 并正在修复错误。
一个错误是 svgs 不再解析。我收到 "This XML does not appear to have any style information associated with it." 行。
例如https://www.donbur.co.uk/gb-en/css/img/menu-icon-pmr.svg
我在某些地方读到它是 HTTP 调用,但我已经检查过,所有调用都是 https。我什至有一个 RewriteRule 将所有 http 请求转换为 https。
我在这里错过了什么?
您不得更改命名空间。以下是正确的。
xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
这些不是 URL,它们只是看起来像 URL。