I need to remove any query parameters from the WordPress post preview URL.
I need to access
https://www.domain.com/prefix/12345 and see the same post preview I would see on
It can not redirect, the URL in the browser must still be
As an alternative, adding a prefix to the original WordPress post preview url would also be enough:
How can I achieve one of these without changing the URLs of the published posts?
The motivations is that I need a URL with a prefix to create a bypass rule on CloudFlare Workers.