Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redirect 301, 302, 308 #1009

Open
beckend opened this issue Oct 22, 2023 · 2 comments
Open

Redirect 301, 302, 308 #1009

beckend opened this issue Oct 22, 2023 · 2 comments

Comments

@beckend
Copy link

beckend commented Oct 22, 2023

Match URI, then redirect to another.

@FlorentinDUBOIS
Copy link
Collaborator

Hello,
Could give us more details about what you want to achieve and your need?

@beckend
Copy link
Author

beckend commented Oct 25, 2023

here is something from envoy, I hope this is clear

                "route_config": {
                  "name": "local_route",
                  "virtual_hosts": [
                    {
                      "name": "all-international",
                      "domains": ["sang.international","*.sang.international"],
                      "routes": [
                        {
                          "match": {
                            "prefix": "/"
                          },
                          "redirect": {
                            "host_redirect": "sang.agency"
                          }
                        }
                      ]
                    }
                  ]
                },

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants