パーマリンク設定変更で404エラーの対処 CentOS7 PHP7 WordPress 4.7.3
httpd.confのOptions Indexes FollowSymLinks下にあるAllowOverrideをAllにします。
vi /etc/httpd/conf/httpd.conf
# The Options directive is both complicated and important. Please see # http://httpd.apache.org/docs/2.4/mod/core.html#options # for more information. # Options Indexes FollowSymLinks # # AllowOverride controls what directives may be placed in .htaccess files. # It can be "All", "None", or any combination of the keywords: # Options FileInfo AuthConfig Limit # AllowOverride All # # Controls who can get stuff from this server. # Require all granted </Directory>
Apacheを再起動します。
service httpd start
再度パーマリンク設定を保存して確認しましょう。