Answer the question
In order to leave comments, you need to log in
Nginx, rewrite - how to change the URL in the address bar?
Hello.
In the thread How to rewrite in Nginx without changing the URL in the address bar? they ask how to make a redirect without changing the URL in the address bar, but my situation is exactly the opposite!
I wanted to make beautiful short addresses. For example, instead of
https://www.domain.ru/mod/bigbluebuttonbn/view.php?id=156
https://www.domain.ru/webinar-156.html
rewrite ^/webinar-(.*) https://www.domain.ru/mod/bigbluebuttonbn/view.php?id=$1 last;
https://www.domain.ru/webinar-156.html
, then what you need opens, but at the same time the address in the address bar changes tohttps://www.domain.ru/mod/bigbluebuttonbn/view.php?id=156
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question