apache 伪静态如何转乘 nginx 伪静态 重写 URL
資深大佬 : pytth 0
我有个公共页面
例如
xxx.com/index.php?id=123
apache 伪静态重写 URL 后是这样的
xxx.com/123
那么 apache 服务器伪静态.htaccess 规则是这么写的
RewriteEngine On #RewriteBase / RewriteRule ^(d+)$ index.php?id=$1
现在要满足 nginx 服务器要求,所以需要写 nginx 伪静态规则,不懂 nginx 的伪静态,在此请教大家。
最好是能够集成在一个伪静态规则文件里面
大佬有話說 (1)