首页/技术/文章阅读

typecho的伪静态规则.htaccess参数值

技术 2021-02-04 31 0
在本地使用phpstudy安装typecho程序,已经安装完毕,测试的时候发现伪静态不好使了,所以找了下资料试试。 出现问题的是下面这种情况  ↓ typecho的伪静态规则.htaccess参数值

找到的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;
    }

正文结束

迟来并且“惨淡的2020年”年终总结wordpress检测百度是否收录代码失效的原因

评论区

还没有评论,来坐沙发吧。