获取 URI 片段(哈希)会影响 SEO?被 SE 索引吗?
我正在构建一个论坛网站,通过 AJAX 在与列表相同的页面上检索帖子。当显示新帖子时,URI 片段会更改(例如:.php#1_This-is-the-first-post)。标题和元标签也发生了变化。
我的问题是这样的。我读到搜索引擎无法使用#these-words。因此,我的整个网站将无法被索引(因为它看起来像一页)。
我可以做什么来解决这个问题,或者至少让我的子页面能够被索引?
注意:我已经构建了几乎所有网站,因此从根本上进行更改将很困难。 SEO 是我最弱的极客技能。
I am building a forum site where the post is retrieved on the same page as the listing via AJAX. When a new post is shown, the URI fragment is changed (ex: .php#1_This-is-the-first-post). Also the title and meta tags are changed.
My question is this. I have read that search engines aren't able to use #these-words. So therefore, my entire site won't be able to be indexed (as it will look like one page).
What can i do to get around this, or at least make my sub-pages be able to get indexed?
NOTE: I have built almost all of the site, so radically changes would be hard. SEO is my weakest geek-skill.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
添加每个页面的非 AJAX 版本,并从弹出窗口中以“永久链接”(或任何您想要的名称)链接到它们。您的页面不仅无法供搜索引擎使用,而且无法添加书签或通过电子邮件发送给朋友。我最近与一些设计师在一个网站上合作,并说服他们不要使用仅 AJAX 的设计。他们最终在弹出窗口中放置了文章“预告片”,并让用户转到带有可添加书签的 URL 的页面来阅读完整的文本。
Add non-AJAX versions of every page, and link to them from your popups as "permalinks" (or whatever you want to call them). Not only aren't your pages available to search engines, they can't be bookmarked or emailed to friends. I recently worked with some designers on a site and talked them out of using an AJAX-only design. They ended up putting article "teasers" in popups and making users go to a page with a bookmarkable URL to read the complete texts.
尽管可能很困难,但“最佳”答案可能是重新构建您的网站,以更谨慎地使用哈希标签 URL 方案。
除此之外,我建议如下:
希望这会有所帮助!
As difficult as it may be, the "best" answer may be to re-architect your site to use the hash tag URL scheme more sparingly
Short of that, I'd suggest the following:
Hope this helps!