url后面的#anchors会影响seo排名吗?

发布于 2024-10-18 20:19:01 字数 539 浏览 12 评论 0 原文

在用 javascript 编写新的选项卡系统时,每个选项卡都是可单击的,并且上面有自己的锚文本,因此将这些锚标记为 #1 #2 #2 etx 会更容易。

另一方面,制作 #text 锚点更加困难,但如果这对页面搜索引擎优化有意义,那么我会考虑重新编程我的选项卡系统。

时,网址中的锚点是否会影响 seo 排名

当页面上的超链接指向棉花http://website.com/cotton#1
http://website.com/cotton#2
http://website.com/cotton#3

http://website.com/cotton#trousers
http://website.com/cotton#hats
http://website.com/cotton#socks

在这种情况下您有何看法?使用更复杂的编程,还是坚持使用更简单的程序生成的自动数字选项卡锚点?

While programming a new tabs-system in javascript, where each tab is clickable and has its own ancher text on it, it would be easier to make these anchors numbers #1 #2 #2 etx.

On the other hand, its more difficult to make #text anchors, but if that has a meaning for the on page seo, then I will consider re-programming my tabs sytem.

Do anchors in urls affect ranking in seo, when on-page hyperlinks to cotton

http://website.com/cotton#1
http://website.com/cotton#2
http://website.com/cotton#3

http://website.com/cotton#trousers
http://website.com/cotton#hats
http://website.com/cotton#socks

What do you reccon in this case? Go with the more complex programming, or stick with the easier, program generated autonumeric tabs anchors?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

成熟的代价 2024-10-25 20:19:01

如果您希望 Google 将锚链接编入索引,则应在锚链接中使用感叹号。

因此,您应该使用 http://website.com/cotton#trousers ://website.com/cotton#!trousers" rel="nofollow">http://website.com/cotton#!trousers 让 Google 将其编入索引。它将被视为一个单独的页面进行处理。

You should use an exclamation mark in your anchor links if you want them to be indexed by Google.

So instead of http://website.com/cotton#trousers you should use http://website.com/cotton#!trousers to have Google index them. It will be processed as if it was a separate page.

铁轨上的流浪者 2024-10-25 20:19:01

据我所知,URI 的所谓“片段”(# 后面的所有内容)对于 SEO 很重要。

它们通常指向页面上的一个直接位置,您可以从中获取信息,这对于在一页上包含大量信息并且需要向下滚动才能获取信息的网站特别有用。

话又说回来,如果您无法跟踪这些链接,并且仅在启用 JavaScript 的情况下它们会执行某些操作,搜索引擎不会关心,因为它们无法完全跟踪这些链接。

永远记住,搜索引擎不会解析 JavaScript,对它们来说,这些都是普通的 URI,不会通往任何地方(或者导向它们已经所在的同一页面,这对 SEO 不利)。

您可以使用 PHP 解析这些片段,但是,如果单击它,则会显示正确的选项卡,因此如果关闭 JavaScript,用户和搜索引擎无论如何都会获得正确的内容。

As far as I know the so-called "fragments" of the URI (everything behind those #s) are important for SEO.

They usually point to a direct spot on a page where you can get your information from, which is especially useful at sites that contain much information on one page and you would need to scroll down to get your information.

Then again, if you can't follow those links and they do something if JavaScript is enabled only, search-engines won't care, because they can't exactly follow the links.

Always remember, search-engines don't parse JavaScript, for them those are plain URIs that lead to nowhere (or to the same page they're already on, which would be bad for the SEO)

You can parse those fragments with PHP, though, and show the right tab if it is clicked, so if JavaScript is turned off, the user as well as the search engine get the right content, anyways.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文