LoginSignup
0
0

More than 3 years have passed since last update.

【WordPress】トップページindex.php以外のページが404エラーになった時の対処法【MAMP】

Posted at

【エラーの経緯】
今回はWordPressにて、MAMPを使用時に

パーマリンクを「基本」から「投稿名」に変更し、
「category.php」「tag.php」「date.php」を表示しようとしたときに404エラーが発生

解決した方法を共有してみたいと思います

【原因】
今回のエラーは、結論からいうとMAMPのサーバー設定が「Nginx」だったことが原因でした。
これを「Apache」に切り替えると404エラーが解消され、無事各ページを表示することができました。

特定の流れは、

phpファイルのコードチェック→
URLのチェック→
パーマリンクの「変更を保存」→
.htaccessのチェック
→MAMPの設定をチェック

という経緯でした。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0