1.改/etc/httpd/conf/httpd.conf
<Directory /var/www/html/example.com/public_html>
Options Indexes FollowSymLinks AllowOverride All Require all granted </Directory>2.重启httpd
3.重新运行安装程序
http://wordpress_site_IP/installer.php
参考链接:
https://wordpress.org/support/topic/after-mirgration-only-home-page-working-getting-404-error-for-all-other-pages/