form1.cn
Make a little progress every day

解决Wordpress首页能打开文章节与子页打不开方法

28th of May 2018 PHP PHPcode 2392

解决Wordpress首页能打开文章节与子页打不开方法:

这通常是.htaccess文件问题,只需要在.htaccess文件里面加入如下一段代码:

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>


然后 

chmod 666 .htaccess