rewrite nginx !
shahzaib mushtaq
shahzaib.cb at gmail.com
Wed Dec 12 10:01:17 UTC 2018
Hi,
Need help on constructing the rewrite url in nginx, need to remove last two
parts of uri as stated in example below:
https://domain.com/videos/32/cooking/most_recent/last_year/
to
https://domain.com/videos/32/cooking
https://domain.com/videos/17/tv-showbiz/most_recent/today/
to
https://domain.com/videos/17/tv-showbiz
Actually we need to match uri as below, help will be highly appreciated :
/videos/[ID]/[STRING]/most_recent/[last_year|all_time|videos|this_year|last_week|last_month|today]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20181212/9d2de9eb/attachment.html>
More information about the nginx
mailing list