crist
V2EX  ›  问与答

Nginx 配置怎么重写 xxx.html 到 xxx. PHP 呢?

  •  
  •   crist · Jan 13, 2020 · 1833 views
    This topic created in 2337 days ago, the information mentioned may be changed or developed.
    原来的配置是这样子的:try_files $uri $uri/ /index.php?$query_string;
    然后一访问***.html,发现不存在***.html 就转到了 index.php ,但我要的是转到***.php ,而不是 index.php ,怎么样写呢各位大佬?之前我都是用 Apache 的啊
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   923 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 40ms · UTC 19:00 · PVG 03:00 · LAX 12:00 · JFK 15:00
    ♥ Do have faith in what you're doing.