大网数据广告活动
网站运营与故障问答

What to do when changing or moving off of a CDN to redirect images?

· 52CE 我爱测

I am moving a site off of a CDN where all the images are cached and served: https://some-cdn.example/my-image.jpg The image will now live here: https://myurl.example/my-image.jpg Many of these images are #1 in Google image search…

问题原文

原帖链接 · AJD · CC BY-SA 4.0

I am moving a site off of a CDN where all the images are cached and served:

https://some-cdn.example/my-image.jpg

The image will now live here:

https://myurl.example/my-image.jpg

Many of these images are #1 in Google image search for our search terms. Since the CDN URL doesn't point to any domain I control I can't add 301 redirects. Is there anything that can be done?

已采纳解答

原帖链接 · Stephen Ostermiller · CC BY-SA 4.0

If the URLs aren't on your own domain and the CDN doesn't have any facility to introduce redirects, then there is nothing you can do.

It probably won't matter all that much for SEO. In the case of images, they are likely only used on your site. There are usually very few external uses of or links to images. So when you use the new image URLs on your site, Google image search will pick up on the new images within a few months.

Next time you use a CDN, it is advisable to assign a subdomain from your own domain name to that content. That way when you terminate the CDN, you still have control over the URLs.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Webmasters Stack Exchange
适用范围
以原帖系统、软件版本与发布日期为准(2019-07-12)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。