Answer the question
In order to leave comments, you need to log in
How to set up nginx rewrite rules for Egey?
CMS for blogs "Egea" has such links
site.ru/?go=all/postname/
The documentation says so
rewrite ^(.*)$ /index.php?go=$1 last;
But it doesn't work, I suspect because it contains index.php and doesn't have it in the URL.
Tell me how to make a rule to leave site.ru/postname/ and site.ru/all/postname/
most likely I will do the first option, and it would be interesting to look at the second for an example.
Answer the question
In order to leave comments, you need to log in
It is correct to ask Birman.
However, here, I suspect, you need to add a slash:rewrite ^/(.*)$ /index.php?go=$1 last;
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question