H
H
hdtor2019-12-02 01:57:45
Nginx
hdtor, 2019-12-02 01:57:45

How to translate htaccess rewrite to nginx?

How to translate this rewrite from .htaccess to nginx rewrite? It does not work.
RewriteRule ^ua/(.*)$ /$1 [L]

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
dodo512, 2019-12-02
@hdtor

rewrite ^/ua/(.*)$ /$1;

M
Maxim Vyaznikov, 2019-12-02
@rv9ufz

I usually use https://winginx.com/ru/htaccess
The output is quite good options, even with complex rules.
Sometimes manual edits are needed minimal, even if there are a lot of rules.
Have you already tried through it, it doesn't work?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question