yoyo
yoyo

Reputation: 11

kong api gateway keep url address plugin

I just installed kong api gateway and konga UI on standalone ec2. I configured a simple service with route to out site. everything is working great!

my question is if there is any plugin for kong that can keep the original browser url after the redirect? For example:

client send request to www.koko.example.com and kong redirect him to www.fofo.example.com. what happened now is that the user see in the browser url address line the www.fofo.example.com and i want to keep the www.koko.example.com address there..

Is there any option to do it?

Upvotes: 1

Views: 1678

Answers (1)

Ôrel
Ôrel

Reputation: 7642

You have a kong module

https://github.com/dsteinkopf/kong-response-string-replace

body_replace_patterns will be:

www.fofo.example.com###www.koko.example.com

There is also an nginx module to do that http://nginx.org/en/docs/http/ngx_http_sub_module.html

A kong article with other solution: https://medium.com/@peterkimnyc/url-rewriting-in-kong-b887d65ca072

Upvotes: 0

Related Questions