Typecho开启伪静态并隐藏index.php

Typecho永久链接会在域名后显示index.php
如 :


怎样解决呢!
首先在typecho程序根目录添加.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>

Last modification:April 4th, 2019 at 09:58 pm
If you think my article is useful to you, please feel free to appreciate

Leave a Comment