Nginx 配置怎么重写 xxx.html 到 xxx. PHP 呢?
資深大佬 : crist 52
原来的配置是这样子的:try_files $uri $uri/ /index.php?$query_string;
然后一访问***.html,发现不存在***.html 就转到了 index.php ,但我要的是转到***.php ,而不是 index.php ,怎么样写呢各位大佬?之前我都是用 Apache 的啊
然后一访问***.html,发现不存在***.html 就转到了 index.php ,但我要的是转到***.php ,而不是 index.php ,怎么样写呢各位大佬?之前我都是用 Apache 的啊
大佬有話說 (0)