【发布时间】:2017-05-11 05:02:26
【问题描述】:
我想要这个简单的重写规则:
http://example.com/8743b52063cd84097a65d1633f5c74f5?param1=999¶m2=2222
被重定向到:
http://example.com/index.php?param1=999¶m2=2222&hash=8743b52063cd84097a65d1633f5c74f5
以下是我的默认位置:
location / {
try_files $uri $uri/ /index.php$is_args$args;
}
如何使用 Nginx 重写来实现这一点?
【问题讨论】:
标签: nginx url-rewriting