1
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のエディタGutenbergの変更が反映されない話(解決済み)

Last updated at Posted at 2021-10-08

Wordpress5.8にしてClassic EditorからGutenbergへの移行を決意したものの,タイトルも投稿も変更することができなくなってました。

タイトルを変更しても下書き保存すると,元に戻ってしまうし,本文を変更してもプレビューには反映されない。
公開を押しても公開されない。

ただ,何故か「add CSS」だけは反映される。。。

色々調べているとどうも .htaccessがあやしい。

自分の場合はこれでした。

.htaccess
# スラッシュなしを転送
RewriteCond %{REQUEST_URI} !/$
RewriteCond %{REQUEST_URI} !\.[^/\.]+$
RewriteRule .* %{REQUEST_URI}/ [R=301,L]

.htaccess
# スラッシュなしを転送(Gutenberg使うならコメントアウト)
# RewriteCond %{REQUEST_URI} !/$
# RewriteCond %{REQUEST_URI} !\.[^/\.]+$
# RewriteRule .* %{REQUEST_URI}/ [R=301,L]

これで解決。

何か末尾スラッシュなしの通信してるのかなぁ・・。

1
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
1
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?