AMP for privacy policy page is not working! I haven’t used any page builder in privacy policy page, and i also turned on amp option for pages in theme panel. I am getting a error in google search console saying ‘Referenced AMP URL is not an AMP’
https://screenshot.net/vqjru99
Hello,
Please make sure amp is enabled for pages as well: https://www.screencast.com/t/dxaNfVFw
thank you!
Yes , i have turned on AMP for both post and pages https://screenshot.net/o9vgwum
Seems it does not work for your other pages like the “About us” page, so something is wrong. I made multiple tests on my end and I found no problem
– https://www.screencast.com/t/xSojb8F3
– https://www.screencast.com/t/QK9lHLVD9w
For your posts it works but those pages don’t work with AMP for some reason. Try to deactivate all plugins as a quick test, leave only theme plugins active. Deactivate and remove the AMP plugin and install it again from the theme plugins panel
– https://www.screencast.com/t/VE24yCu0APaM
Check if that solves the problem.
I tried deactivating all the plugins expect heme plugins and also removed the AMP plugin and reinstalled it, still no effect.
Do you have some form of caching? Clear it all if you do. Now I see the posts don’t have AMP as well
– https://www.screencast.com/t/gVTwnErx2fc
The plugin seems active however, the AMP link is in the page source.
Also check your robots file if you use one, it could block the AMP pages
– https://www.screencast.com/t/T84NuiLIv
When i deactivated and reinstalled amp plugin, now amp is not working on posts too.
i tried clearing the cache.
i checked the robot.txt file is fine.
User-agent: *
Disallow: /wp-admin/
Allow: /wp-admin/admin-ajax.php
# Rule 2
User-agent: *
Allow: /
It worked for posts, but pages are still not working on amp.
There is still an error displayed for those pages
– https://www.screencast.com/t/3Ic7nSu3Bc
Try to check with your hosting as well, maybe there are some kind or redirects set for AMP page URL’s for some reason. Take a look in the htaccess file as well. Checking with a redirect checker for that page AMP seems to redirect to the homepage
– https://www.screencast.com/t/JluxdZ6Ku6
htaccess file
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
currently i am hosting on digital ocean, so no cpanel so any idea on how to check redirects set for Amp pages?
Htaccess seems fine, this is most unusual. I have made multiple tests and as long as the AMP page option is enabled in the theme panel, everything works properly.
I suggest you contact your hosting, maybe they would have an idea as to why AMP works for your posts but not for the pages where it should. Let us know what you find.