Skip to content

Latest commit

 

History

History
28 lines (24 loc) · 836 Bytes

README.md

File metadata and controls

28 lines (24 loc) · 836 Bytes

Work still in progres

Kong Dynamic Redirect plugin

HTTP redirects in Kong OSS are tough. They require two plugins to be enabled:

This plugin covers both and supports a dynamic Location header generation.

image

Configuration

Dynamic configuration

config:
  dynamic:
    pattern: ^/en
    replacement: /
    redirect_code: 302
    redirect_domain: your-new-api.com

Static configuration

config:
  static:
    redicert_url: https://your-new-website.com
    redirect_code: 302