Advanced URL Redirects Using Workers

So, I want https://seg.srnyx.xyz to redirect to https://sites.google.com/view/srnyxevents and then https://seg.srnyx.xyz/* (replace * with any text) would redirect to https://sites.google.com/view/srnyxevents/* (replace * with the text inputted into https://seg.srnyx.xyz/*)

For example:
If I type in https://seg.srnyx.xyz/links, I’ll be redirected to https://sites.google.com/view/srnyxevents/links.

You can use Page Rules instead of Workers. It’s simpler than worker. You can create a Page Rule like this