在网站根目录找到. htaccess,可能设置了隐藏文件,显示隐藏文件就能看到了。
然后编辑. htaccess 文件,加入上文中对应的 apache 配置代码保存。然后去 typecho 程序后台,设置 > 永久链接,按照上文中
图片的设置,保存即可。
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php [L,E=PATH_INFO:$1]
</IfModule>