Apache 设置 typecho 伪静态去除 index.php

  1. 设置 - 永久链接 - 启用地址重写功能
  2. 网站根目录 创建 .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>

发表评论

你未评论过,数字qq邮箱自动获取头像。

OωO
换色
阅读
登录
扫码