D
D
Deterrent2015-08-11 10:26:15
Nginx
Deterrent, 2015-08-11 10:26:15

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

1 answer(s)
L
Lynn "Coffee Man", 2015-08-11
@Lynn

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 question

Ask a Question

731 491 924 answers to any question