在用 javascript 编写新的标签系统时,每个标签都是可点击的并且上面有自己的 anchor 文本,将这些 anchor 编号设为 #1 #2 #2 etx 会更容易。
另一方面,制作#text anchor 比较困难,但如果这对页面 seo 有意义,那么我会考虑重新编程我的标签系统。
当页面上的超链接指向 cotton 时,url 中的 anchor 是否会影响 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
在这种情况下,您认为什么?使用更复杂的编程,还是坚持使用更简单的程序生成的自动数字标签 anchor ?
最佳答案
如果您希望 Google 将它们编入索引,您应该在 anchor 链接中使用感叹号。
所以不是 http://website.com/cotton#trousers你应该使用 http://website.com/cotton#!trousers让谷歌索引它们。它将被视为一个单独的页面。
关于tabs - url 后的 #anchors 会影响 seo 中的排名吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5082273/