V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
crist
V2EX  ›  问与答

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

  •  
  •   crist · Jan 13, 2020 · 1755 views
    This topic created in 2299 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   ·   2413 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 01:09 · PVG 09:09 · LAX 18:09 · JFK 21:09
    ♥ Do have faith in what you're doing.