Transform Rules come to my mind, but haven’t tried them yet and not sure if it would work like that.
But, either if you set the up here at Cloudflare, maybe your origin host would show 404 not found if they aren’t being recognized and routed well in your application.
More information about them:
From my perspective, I would suggest to setup this at the origin host, if possible.
In case if you are using WordPress and AMP for WordPress plugin, you can select the “slash version” URL structure for your AMP version of posts/pages in the options of the plugin itself.
Furthermore, may I ask what is your case to have
?amp instead of
Nevertheless, do not forget to enable the
AMP Real URL option in Cloudflare dashboard under Speed → Optimization → scroll down to AMP Real URL.
This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.