Привет!

А каков правильный способ организации вот таких вот редиректов?

https://site.domain.com/static/html/help.html ->
https://help.domain.com/helppage1
https://site.domain.com/static/html/help.html#WhatisSite? - ->
https://help.domain.com/helppage2
https://site.domain.com/static/html/help.html#GettingStarted ->
https://help.domain.com/helppage3

Слева - всегда "/static/html/help.html".

Если делать:

location = https://site.domain.com/static/html/help.html#GettingStarted {
return 301 https://help.domain.com/helppage3;
}

.. то понятное дело "#GettingStarted" съедается.

Выставлять кучу "if"-ов переменной $request_uri? Или есть более правильный
способ?

--
s.

Posted at Nginx Forum: 
https://forum.nginx.org/read.php?21,268687,268687#msg-268687

_______________________________________________
nginx-ru mailing list
[email protected]
http://mailman.nginx.org/mailman/listinfo/nginx-ru

Ответить