I need to remove any query parameters from the WordPress post preview URL.
I need to access and see the same post preview I would see on
/?p=12345&preview=true
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:
/?p=12345&preview=true
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 route on CloudFlare Workers.
ps.: Cloudflare Page rules are different than Cloudflare Workers Routes. The Worker Routes does not support query parameters on it.