Skip to content

Route path need config the whole path #7715

Answered by fffonion
XJShane asked this question in Help
Discussion options

You must be logged in to vote

@XJShane The location hack you did not change how Kong views the request path, but just point to a different location block, which does the same thing as the default / block. While the use case you described is not a common case in Kong, if you must
use it in that way, consider using an internal redirect (not rewrite).

For various historical reasons from #2366 to #6821, Kong won't use the URI after rewrite (it always uses the original request_uri), thus rewrite it in plugin or template doesn't work.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by guanlan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
2 participants