LoginSignup
0
1

More than 1 year has passed since last update.

AutoptimizeでWordpressの表示が壊れる問題の対処法

Last updated at Posted at 2022-12-08

Apache+PHPの環境でWordpressを運用している(下記)。

パフォーマンス改善のためにAutoptimizeというプラグインをインストールし、JavaScriptとCSSの最適化を行ったところ、Wordpressの表示が崩れるようになった。

原因は/wp-content/cache/autoptimize/.htaccessに許可されていないディレクティブの記述があることによる500エラー。

httpd.confにAuthConfigを追加したところエラーが解消された。

wordpress-httpd.conf
AllowOverride FileInfo Indexes AuthConfig

もっとも、Google Compute Engineで運用しているので

wordpress-httpd.conf
AllowOverride All

としてしまってもいいのかもしれない。

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