static site compatible way to handle redirects

[#54060325]