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

Does Google index #! (hash bang) URLs?

· 52CE 我爱测

Just got confused with some blogs as everyone is sure that Google will not index the hash ( # ) URL but not sure about hash bang ( #! ) URL. I have seen a "deprecated" doc on Google regarding this, where Google is asking to use #…

问题原文

原帖链接 · Nidheesh · CC BY-SA 3.0

Just got confused with some blogs as everyone is sure that Google will not index the hash (#) URL but not sure about hash bang (#!) URL. I have seen a "deprecated" doc on Google regarding this, where Google is asking to use #! for Ajax-based sites.

Can some help me to decide whether I can go with #! URLs?

已采纳解答

原帖链接 · Tony DiNitto · CC BY-SA 3.0

Hash bang URLs are most definitely deprecated. Wix (a popular web site builder) is probably one of the biggest facilitators of getting people stuck in them.

The problem comes into play when you can never give a 301 Redirect for a hash bang URL from your end. Meaning that once you dig into using those types of URLs, changing sites/urls to somewhere else will be essentially next to impossible to retain your link juice for SEO purposes.

I've used hash bang URLs, because years ago I started with Wix's website builder, but it cost me severely when I finally decided I had graduated from Wix's crutches. Investing the time in any other builder, or even Wordpress themes, will not only pay off in the long run, but you'll be happy you never had to learn about old deprecated link structuring like hash bangs.

However, despite the limitations of #! URLs, Google definitely indexes these URLs and your site can be ranked by Google.

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

资料来源与适用范围

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

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

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