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

Is it possible to redirect a domain while keeping that domain in Google search results?

· 52CE 我爱测

I have a domain name, https://seo.example.com/ , that is currently showing up in Google Search results. I want to set up a redirect such that when visitors view that domain, they are immediately redirected to a different domain, …

问题原文

原帖链接 · Maximillian Laumeister · CC BY-SA 4.0

I have a domain name, https://seo.example.com/, that is currently showing up in Google Search results. I want to set up a redirect such that when visitors view that domain, they are immediately redirected to a different domain, https://www.example.com/seo/. The complicating part is that I also want to keep the original domain in the Google search results instead of having Google display the redirect target.

My first thought was to use a 302 redirect from https://seo.example.com/ to https://www.example.com/seo/, and set a canonical meta tag on the target page with the content https://seo.example.com/. Would this accomplish my goal of keeping the original domain in Google search while also redirecting away from it, or would Google consider this an improper use of the canonical tag and tank the search ranking of one or both pages?

Is there a way to do this above water or is it impossible by design?

已采纳解答

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

Google is unlikely to return the source of a redirect in organic search results, even a 302 (temporary) redirect, for very long. Particularly when the target URL is a different hostname.

Would this [canonical meta tag] accomplish my goal of keeping the original domain in Google search while also redirecting away from it, or would Google consider this an improper use of the canonical tag and tank the search ranking of one or both pages?

The meta tag will likely be ignored. It does not make sense for Google to penalise such "improper use". The canonical meta tag is simply a suggestion. An external redirect is a much stronger suggestion.


However, unless you are restricted by your host in some way, you should never need to do this kind of redirect - so I'm curious as to the backstory here?

  • Can you not change the subdomain / server config so that it points to the correct location directly?

  • If you are wanting to maintain the URL and serve the content from a different host then you should consider implementing a reverse proxy instead.

  • If www.example.com/seo/ is actually on the same server (same filesystem) - as implied by the same example.com domain - then you may only need an internal rewrite.

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

资料来源与适用范围

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

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

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