V
V
Vladimir Mukovoz2017-10-31 11:53:05
Nginx
Vladimir Mukovoz, 2017-10-31 11:53:05

Explain why the regular expression does not work?

Here it works correctly And here it says that the page is not present.
rewrite ^/ru/(.*)?$ /$1;

rewrite ^/(ru|es|de|fr|pl|tr|it|nl|pt|ja)/(.*)?$ /$1;

Answer the question

In order to leave comments, you need to log in

2 answer(s)
L
Lynn "Coffee Man", 2017-10-31
@castomi

Because the numbering has shifted and instead of `$1` you need to write `$2`

A
Arman, 2017-10-31
@Arik

If you do not need a language, then you can try:
if the language is needed, then your code is needed, but it will already be $1, and everything after it is $2, as they wrote before me

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question