谷歌云存储重定向到另一个域
GoogleCloudStorage make redirect to another domain
提前感谢您的回答我想将 google 云存储 links (storage.googleapis.com) 重定向到我自己的域我已经实现了,但是当我添加了一些东西,比如托管在我的一个服务器中的图片,该服务器 linked 到这个域 google 云存储 link 运行不正常,解释:
例如我的域名 example.com
,它 link 到我的 google 云帐户 link https://storage.googleapis.com/example-test/example.html if I add anything after that like https://storage.googleapis.com/example-test/example.html#gOAdv.png 它只重定向到主域 example.com
这是我example.html
的内容:
<meta http-equiv="refresh"content="0; url=http://myexampledomain.com/">
注意当我从 link 中删除 # (https://storage.googleapis.com/example-test/example.html#gOAdv.png)
它显示此错误:
This XML file does not appear to have any style information associated with it. The document tree is shown below.
<Error>
<Code>NoSuchKey</Code>
<Message>The specified key does not exist.</Message>
<Details>No such object: example-test/example.html/gOAdv.png</Details>
</Error>
大家好我已经找到答案这是我的思考方式
<meta http-equiv="refresh"content="0; url=http://myexampledomain.com/">
这一行又短又糟糕,我需要通过另一种语言对其进行编码才能使其正常工作。
感谢大家。
提前感谢您的回答我想将 google 云存储 links (storage.googleapis.com) 重定向到我自己的域我已经实现了,但是当我添加了一些东西,比如托管在我的一个服务器中的图片,该服务器 linked 到这个域 google 云存储 link 运行不正常,解释:
例如我的域名 example.com
,它 link 到我的 google 云帐户 link https://storage.googleapis.com/example-test/example.html if I add anything after that like https://storage.googleapis.com/example-test/example.html#gOAdv.png 它只重定向到主域 example.com
这是我example.html
的内容:
<meta http-equiv="refresh"content="0; url=http://myexampledomain.com/">
注意当我从 link 中删除 # (https://storage.googleapis.com/example-test/example.html#gOAdv.png) 它显示此错误:
This XML file does not appear to have any style information associated with it. The document tree is shown below.
<Error>
<Code>NoSuchKey</Code>
<Message>The specified key does not exist.</Message>
<Details>No such object: example-test/example.html/gOAdv.png</Details>
</Error>
大家好我已经找到答案这是我的思考方式
<meta http-equiv="refresh"content="0; url=http://myexampledomain.com/">
这一行又短又糟糕,我需要通过另一种语言对其进行编码才能使其正常工作。 感谢大家。