V
V
VirgiL2014-10-30 10:23:58
Nginx
VirgiL, 2014-10-30 10:23:58

How to implement a similar nginx redirect?

Good afternoon.
It is necessary to make a redirect of this kind:
site.ru/help/en/test should redirect to site.ru/help/en/#test
in fact, you only need to add # before test, I have already considered quite a lot of options, but not one of them is correct works.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
VirgiL, 2014-10-30
@VirgiL

Thanks to all who answered, everything worked with the following redirects:
rewrite ^/help/(.*)/([^#]\w+)$ $scheme://site.ru/help/$1/#$2 permanent;
rewrite ^/help/(.*)/([^#]\w+)/$ $scheme://site.ru/help/$1/#$2 permanent;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question