Hello World

Just So So ...

首页

Typecho Nginx下的伪静态rewrite规则

  • 作者: admin
  • 时间: 2021-09-02
  • 分类: Code
location / {
    index index.html index.php;
    if (-f $request_filename/index.html){
        rewrite (.*) $1/index.html break;
    }
    if (-f $request_filename/index.php){
        rewrite (.*) $1/index.php;
    }
    if (!-f $request_filename){
        rewrite (.*) /index.php;
    }
}

nginx配置文件中添加

标签: none

评论已关闭

  • 上一篇: 关于typecho使用cloudflare后台进不去的问题
  • 下一篇: centos7利用yum安装lnmp的教程(linux+nginx+php7.1+mysql5.7)

最新文章

  • mysql 快速导入大sql文件
  • SpringBoot 开发前后端在一起模板报错template might not exist or might not be accessible by any of the configured
  • SQL Server 查询 Row_Number() OVER去重
  • python list.index()用法
  • centos7利用yum安装lnmp的教程(linux+nginx+php7.1+mysql5.7)
  • Typecho Nginx下的伪静态rewrite规则
  • 关于typecho使用cloudflare后台进不去的问题
  • BBR加速 Centos
  • Navicat 连接MAMP中的mysql
  • docker desktop 命令

分类

  • Code
  • 互联网
  • PM
© 2025 Hello World. 由 Typecho 强力驱动.