# WordPress 除了主页以外的页面都提示Not Found的问题(Centos)

验证是否是.htaccess文件的问题

验证 wordpress.com/?p=id 打开的链接是否能够正常使用

验证是否加载mod_rewrite模块

Wordpress/目录创建index.php文件,(注意保存源文件)

<?php
	phpinfo()
?>

再浏览器中打开博客链接,并在浏览器中搜索mod_rewrite是否存在,它应该是已经加载的

更改apache的配置文件 /etc/httpd/httpd.conf

<Directory /path/to/wordpress>
  Options Indexes FollowSymLinks
  AllowOverride All
  Require all granted
</Directory>

重启apache服务器

service httpd restart

posted @ 2019-02-15 14:52  Duffy  阅读(438)  评论(0)    收藏  举报