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

How to submit shortened URLs to Google so that they are included in the index

· 52CE 我爱测

I am working on a project to create a URL shortener. I have successfully gotten it to create short URLs, but I would like to submit them to Google. When I submit a short URL via Google Webmaster Tools, it gives me a redirect erro…

问题原文

原帖链接 · Ypages Onine · CC BY-SA 3.0

I am working on a project to create a URL shortener. I have successfully gotten it to create short URLs, but I would like to submit them to Google. When I submit a short URL via Google Webmaster Tools, it gives me a redirect error.

I see shortened URLs for goo.gl and bit.ly in the search results:

How do they do that? How are they able to submit their short URLs to Google? Are they using curl? When Google fetches the URL do they identify it as Googlebot, download the contents with curl and re-serve the actual contents to Google? Could I do something similar? I am using PHP.

Having used the internet for ten years I had never before seen any search result linked with a shortened URL in Google! Why am I only seeing it now? From my research, I suspect:

  • Due to duplicate content Google does not want to show fake websites on top of the search results.
  • If a user clicks on a Google search result, and after click, that link redirects to another URL, Google will demote the redirecting website.

My aim is to create a short URL website and submit all short URLs to Google. With many URLs submitted, there would be many chances to rank in different Google searches.

社区高分解答

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

Just because a URL is in Google's index doesn't mean that it was submitted through webmaster tools or search console. Google includes most URLs in the index only because it finds links to them on other sites.

Most of the time Google won't index a redirecting URL (including a shortened URL.) Usually Google prefers the destination. If the redirect URL has a lot of links and the destination is not crawlable Google may choose to index the redirect instead. If the redirect URL is more authoritative (like a home page URL that redirects to a deep page), Google may also choose to index the shortened URL.

Site search results are also very different than other types of search results. Google is much more likely to show poor quality pages in a site search result than in normal search. Part of why you are finding some redirect URLs for goo.gl is because you are using site search. Those URLs are very unlikely to show up for normal search phrases.

If you create a URL shortener, you won't be able to get many of your shortened URLs indexed by Google.

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

资料来源与适用范围

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

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

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