# 壊れたリンクは404ページの代わりにアクセス拒否ページにリダイレクトされる

**URL:** <https://meta.discourse.org/t/broken-links-redirect-to-the-access-denied-page-instead-of-404/346619>\
**Category:** Bug\
**Created:** [2025 年 1 月 11 日午前 5:14 UTC](https://meta.discourse.org/t/broken-links-redirect-to-the-access-denied-page-instead-of-404/346619 "2025-01-11T05:14:14Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![NateDhaliwal](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/natedhaliwal/32/313494_2.png) [@NateDhaliwal](https://meta.discourse.org/u/NateDhaliwal)\
**Post date:** [2025 年 1 月 11 日午前 5:14 UTC](https://meta.discourse.org/t/broken-links-redirect-to-the-access-denied-page-instead-of-404/346619/1 "2025-01-11T05:14:14Z")

</div>

[https://meta.discourse.org/t/modifying-style-attribute-dynamically-on](https://meta.discourse.org/t/modifying-style-attribute-dynamically-on) -topic-list-item/346415/2 のような間違ったトピックURL（スペースに注意）にアクセスすると、次の問題が発生します。

 ![A web page displaying an access denied message with a yellow circle and a red circle on a blue background. (Captioned by AI)](https://global.discourse-cdn.com/meta/original/4X/8/4/6/8469c1dd3f1aafc61b3807e4e9af04b16658af95.png)

リロードすると、次のようになります。

 ![An error message indicates that the page does not exist or is private on a website. (Captioned by AI)](https://global.discourse-cdn.com/meta/original/4X/1/2/f/12f63adfa7971f730fbb5ac1300554a17124ae19.png)

リンクは、2番目の画像に表示されているページではなく、最初の画像に表示されているページに直接移動する必要があります。  
@merefield と私も、[Many pages unindexed by Google](https://meta.discourse.org/t/any-advice-on-how-to-find-experienced-discourse-developers/345965) でこの問題が発生することに気づきました。 \[1\]

* * *

1. 心配しないでください、そのハイパーリンクは壊れていません 😆

---

_[View the full topic](https://meta.discourse.org/t/broken-links-redirect-to-the-access-denied-page-instead-of-404/346619)._
