【问题标题】:convert rules from htaccess to nginx将规则从 htaccess 转换为 nginx
【发布时间】:2018-09-01 15:58:36
【问题描述】:

希望有人可以帮助我,将我的 apache htaccess 规则转换为 nginx 配置

  1. 从 url 中删除 .php,因此 url: "/contac"t 显示文件contact.php

  2. 使这个路径使用它们各自的php文件,例如:

"/products" 显示文件 products-all.php

"/products/some-category-name" 显示文件 products-cat.php

"/products/some-category-name/product-name?id=89" 显示文件 products-detail.php

我尝试到处搜索,但无法找到正确答案,感谢任何帮助

谢谢

【问题讨论】:

    标签: php .htaccess nginx mod-rewrite url-rewriting


    【解决方案1】:

    检查以下链接: htaccess to nginx

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-02-17
      • 2017-07-15
      • 2015-09-09
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-11-07
      相关资源
      最近更新 更多