0
我有被使用URL格式的應用程序:nginx的URL不再存在,並且需要重定向
http://www.example.com/something/handle/uniquecode
該網址已更改爲
http://www.example.com/s/h/uniquecode
和我想讓舊網址的用戶仍然可以訪問系統。我該如何在nginx中編寫這個重定向?
PS:目前,如果有人試圖訪問http://www.example.com/something/handle/uniquecode會收到一個404頁
在此先感謝
http://nginx.org/en/docs/http/ngx_http_rewrite_module.html#rewrite檢查是否可以幫助你。 – Opv