Approach To Implementing Web Redirects In IPFS Gateway

I’m using cloudflare-ipfs.com for static site hosting and the feature that I mostly miss is web redirects (HTTP codes: 301, 302, 307, 308).

How would one approach to implementing web redirects support in IPFS gateway?

Should one start with implementing relative links inside IPLD or creating special files that are treated specifically on the gateway for web redirecting to another url?