Score:0

NGINX Rewrite Rule for Slug

cn flag

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?

in flag
Does this answer your question? [apache rewrite > nginx rewrite](https://serverfault.com/questions/339691/apache-rewrite-nginx-rewrite)
TheKrisMoore avatar
cn flag
Figured out using the following link: https://stackoverflow.com/questions/59846238/guide-on-how-to-use-regex-in-nginx-location-block-section
djdomi avatar
za flag
please add an answer in case it has been solved or i have to review this question a thousand times again ;)
Score:0
cn flag

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

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.