I am trying to create a rewrite rule in NGINX for a URL.
The Original URL format is https://example.com/blog/article-slug-here
but needs to be in this format:
https://example.com/blog?article=article-slug-here
any suggestions?
I am trying to create a rewrite rule in NGINX for a URL.
The Original URL format is https://example.com/blog/article-slug-here
but needs to be in this format:
https://example.com/blog?article=article-slug-here
any suggestions?
I managed to figure it out using the documentation provided on another post located here: https://stackoverflow.com/questions/59846238/guide-on-how-to-use-regex-in-nginx-location-block-section