在本地使用phpstudy安装typecho程序,已经安装完毕,测试的时候发现伪静态不好使了,所以找了下资料试试。
出现问题的是下面这种情况 ↓
找到的apache规则:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php/$1 [L]
</IfModule>
找到的nginx规则:
if (!-e $request_filename) {
rewrite ^(.*)$ /index.php$1 last;
}
正文结束