Once you download and install Purge AMP CDN Cache extension it will create this file in the main directory like below the screenshot.
1. First, you should check a .well-known folder is available or not in your main domain directory.

If it is not available on your main domain directory then you can download and place it in your main domain directory you can download this zip file Click Here.
2. Need to check the below code is present in your main domain directory .htaccess file or not.
# BEGIN PurgeCDNAddType text/plain .pub Header add Cache-Control "max-age=300, public" SetEnvIfNoCase User-Agent .*google.* search_robot SetEnvIfNoCase User-Agent .*yahoo.* search_robot SetEnvIfNoCase User-Agent .*bot.* search_robot SetEnvIfNoCase User-Agent .*ask.* search_robot Allow from env=search_robot # END PurgeCDN
If not present then place the above code at the end of the .htaccess file.
In .well-known folder there will be public key named “apikey.pub” followed by amphtml folder.
That’s it for this tutorial!
We hope it helped you. If you have any feedback or questions, then please share them in the comments section below.
Purge AMP CDN Cache
Hi, I’m trying to clear cache, but i received the following error:
You don’t have permission to access [directory] on this server
What can i do?
Hi Daniel,
Will you please contact our technical team from here- https://ampforwp.com/support/ they will help you as soon as possible.