Hello,
If your A record for example.com is already proxied (orange-clouded) then you need to create Bulk Redirects as follows to accomplish it.
Source URL: example.com/videoname (so it matches both http and https)
Target URL: https://youtu.be/something (an example per usual YouTube’s links for sharing)
Status: 301
Edit parameters:
- Preserve query string - No
- Include subdomains - No (unless you want www.example.com/videoname to also work)
- Subpath matching - Yes (without it you get 522 errors when an extra path or subpath is requested)
- Preserve path suffix - No (to not carry over those extra paths or subpaths)
Once all your URL redirects exist as list items on an associated list (content type = Redirect) and the Bulk Redirect rule targeting that list is enabled, your redirects should work as expected, for example:
https://example.com/videoname should redirect to https://youtu.be/videoid
Bulk Redirects take precedence over Page Rules redirects, so deactivate any Page Rule with similar or exact behavior while testing and deploying your Bulk Redirects to be 100% safe.