获取 URI 片段(哈希)会影响 SEO?被 SE 索引吗?

发布于 2024-08-15 03:57:30 字数 270 浏览 3 评论 0原文

我正在构建一个论坛网站,通过 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 技术交流群。

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

发布评论

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

评论(2

酷炫老祖宗 2024-08-22 03:57:30

添加每个页面的非 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.

情独悲 2024-08-22 03:57:30

尽管可能很困难,但“最佳”答案可能是重新构建您的网站,以更谨慎地使用哈希标签 URL 方案。

除此之外,我建议如下:

  1. 创建一个替代的、非基于哈希的 URL 方案。这是必须的。
  2. 创建站点地图,允许搜索引擎通过新的 URL 方案找到您现有的页面。
  3. 慢慢地移植你的网站。您可以考虑在页面上添加这些更深层次的链接,或者鼓励用户共享这些链接而不是基于哈希的链接等。

希望这会有所帮助!

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:

  1. Create an alternative, non-hash based URL scheme. This is a must.
  2. Create a site-map that allows search engines to find your existing pages through the new URL scheme.
  3. Slowly port your site over. You might consider adding these deeper links on the page, or encourage users to share those links instead of the hash-based ones, etc.

Hope this helps!

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