0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

WordPressでパーマリンク設定を変更後に403エラーが出たときの対処法

Posted at

ワードプレスのテーマtwentytwentyを基盤に、管理画面からパーマリンク設定を変更後に403エラーが出たので、その時の対処法を備忘録的に残す。

環境情報

PHP:version 7.3.12
WordPress:version 5.5.3
WPテーマ:twentytwenty

作業

ディレクトリ直下にある.htaccessファイルに以下の一文を追記しなさいという記事をいくつか見かけたので試しました。

.htaccess
Options +FollowSymLinks

しかし、これを追加すると私の場合500エラーになってしまいました。
一部のサーバでは上記は使えないそうなので、次の一文に変えると解決しました。

.htaccess
Options +SymLinksIfOwnerMatch
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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?