【发布时间】:2017-06-21 19:54:27
【问题描述】:
我有一个问题,我们需要将我们的网站移动到另一个软件。
我们有以下网址设置:
Downloads / Resources
Original:
https://www.website.com/downloads.php?do=file&id=47
New:
https://www.website.com/resources/flight-update-red.47/
Forum
Original:
https://www.website.com/gen-chat-213/
New:
https://www.website.com/forums/gen-chat.213/
Thread
Original:
https://www.website.com/gen-chat-213/8281-connect-probs.html
New:
https://www.website.com/threads/connect-probs.8281/
我在论坛部分试过这个:
rewrite ^/(.*)-$/ /forums/$1.$2/ last;
但是没有运气可以请人帮忙,
谢谢
【问题讨论】:
标签: regex url nginx url-rewriting