I currently have my URL for my video page rewritten like so
rewrite ^/watch/(.*) /video.php?vid_id=$1 last;
This makes the URL look like
I want to be able to add the title in the URL like so without it affecting the location and current behavior of the URL above
I would also however, like to be able to still use
www.site.com/watch/123456 or www.site.com/watch/123456/ to get to my video and therefore be equivalent to my original URL (have flexibility in the URL). Does anyone know how to do this with NGINX? Do I need multiple rewrites? I have tried combinations of multiple rewrites with no success. I have seen it done on many sites but am not sure how they accomplished it.