# ページ番号によるGooglebotの404エラー

**URL:** https://meta.discourse.org/t/googlebot-404-errors-due-to-page-numbers/96337
**Category:** Support
**Created:** [2018 年 9 月 4 日午後 3:46 UTC](https://meta.discourse.org/t/googlebot-404-errors-due-to-page-numbers/96337 "2018-09-04T15:46:41Z")
**Posts on this page:** 1
**Showing post:** 14

<div class="post-metadata">

### Author: ![rahim123](https://avatars.discourse-cdn.com/v4/letter/r/df705f/32.png) [@rahim123](https://meta.discourse.org/u/rahim123)
#### Post date: [2023 年 10 月 18 日午前 6:49 UTC](https://meta.discourse.org/t/googlebot-404-errors-due-to-page-numbers/96337/14 "2023-10-18T06:49:51Z")

</div>

これはまだ問題です。

> [@Sitemap plugin - no ?page=… urls in default sitemap](https://meta.discourse.org/t/sitemap-plugin-no-page-urls-in-default-sitemap/220283/10):
>
> I’m having trouble with Google Search Console trying to index URLs like https://example.com/t/title-slug/1234?page=3 , which make Discourse throw a 404. Removing the ?page=x parameter makes the URL valid. I assume this is some kind of a side effect of Discourse adding pagination to the version of the site that it serves crawlers:

> [@sam](#):
>
> ページ番号が大きいものを最後のページに自動リダイレクトするのは、おそらく理にかなっていると思います。

これは妥当な解決策のように思えます。しかし、そもそもなぜこれが起こっているのか理解できませんか？なぜDiscourseは存在しないページ番号をサイトマップに追加しているのですか？

> [@sam](#):
>
> そのトピックは分割されたため、ページ番号が不安定になりました。これは、当社の番号付け実装における根本的な制限です。
> 
> 本の例えで言うと、本から77ページを破り取っても、200ページは200ページのままです。Discourseでは、200ページが199ページになってしまいます。

この問題で調査しているトピックの場合、削除された投稿やスレッドへのその他の変更はありません。

---

_[View the full topic](https://meta.discourse.org/t/googlebot-404-errors-due-to-page-numbers/96337)._
