Hello,
I'm storing my blog posts in numerical sequential order, like primary keys in a RDMS.
user/pages/post/1
user/pages/post/2
etc.
My permalink format is going to be as so: example.com/post/1/title-of-story-1
I want the last portion to not matter though. In the event that I change the titles to any of my blog posts, I still want my old permalinks to work.
I want example.com/post/1/anything-here to route to example.com/post/1
What is the best approach to achieve this? I'm not very familiar with regex and nginx rewrite rules, I'm guessing that's the way to go about it.
Thanks in advance.