【发布时间】:2017-09-01 13:17:40
【问题描述】:
我有简单的 nginx 重写,我无法开始工作。
我有这个网址:
https://example.com/accessories/3427-tote-bag-grey-212345050033.html
我想重定向到:
https://example.com/dk/accessories/3427-tote-bag-grey-212345050033.html
我的 nginx 配置:
location / {
index /index.php;
rewrite ^/dk/$1/$2.html /$1/$2.html last;
}
这里有什么想法是错误的吗?
【问题讨论】:
标签: nginx