H
H
harsh342020-10-23 16:54:41
Nginx
harsh34, 2020-10-23 16:54:41

nginx. How to set up rewrite correctly?

Good afternoon.
Help out. The task is to convert one url to another.
when referring to
https://site.com:8443/reports/ 1hrbewW5Pes0TzqretBrkjGDAQK /
1hrbewW5Pes0TzqretBrkjGDAQK - this is the variable part, of course.

redirect to
https://site.com:8443/manage-reports/ ( menu-reports:report_details/ 1hrbewW5Pes0TzqretBrkjGDAQK //manage-reports:control)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
dodo512, 2020-10-23
@harsh34

rewrite ^/reports/([^/]+)/$ /manage-reports/(menu-reports:report_details/$1//manage-reports:control) permanent;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question