Would you please help me about Plugin "Redirect"

So I try to redirect from route but it’s error {“name”: “plugin ‘redirect’ not enabled; add it to the ‘plugins’ configuration property”} , So I go check with plugins/enabled but there are no redirect in there , How can I add it , Im using kubernetes ( with helm )
image:
repository: kong/kong-gateway
tag: “3.7.1.1”

Sorry with my bad English

@Rev If possible, can you try and be more specific about your goal and can you provide example configurations you are trying to use and how you are applying them, along with any errors or success messages you are receiving. Thank you

So I need to create redirect route example
if I access with www.example.com , I need redirect to example.com

Hi Rev,
The redirect plugin was added in 3.9.0.0 so you will not be able to add it to 3.7.1.1. For this use case you can follow something like this KB checking for the presence of the host header. Alternatively, you could use the serverless functions

local host = kong.request.get_header("host")
if host:match("www.example.com") then
   kong.response.set_header("location", "https://example.com"..kong.request.get_path())
   kong.response.exit(302)
end