技術と本について書くブログ

技術と本について書くblog。技術メモなど雑記を書いているblog。

GCPで作成したwordpressのpermalinkがうまくいかない時の設定方法

wordpressのパーマリンクの設定をした際に表示できない問題の解消

Apacheの設定を変更する

sudo vim /etc/apache2/apache2.conf

以下のAllowOverrideをALLに変更

<Directory /var/www/>
        Options Indexes FollowSymLinks
        AllowOverride ALL 
        Require all granted
</Directory>

あとはリスタートする

sudo service apache2 restart

参考

https://studiok40.com/so-your-permalinks-in-wordpress-arent-working-on-a-google-cloud-instance/