Apache 设置 typecho 伪静态去除 index.php
- 设置 - 永久链接 - 启用地址重写功能
- 网站根目录 创建 .htaccess 文件,粘贴
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php [L,E=PATH_INFO:$1]
</IfModule>