AMP for privacy policy page is not working!

Posted in: Newspaper
Post count: 67

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

Post count: 23312

Hello aloysiuspattath,

Please provide your website URL and the specific URL when you get an error with your AMP.

Thanks.

Post count: 67
Post count: 22421

Hello,

Please make sure amp is enabled for pages as well: https://www.screencast.com/t/dxaNfVFw

thank you!

Post count: 67

Yes , i have turned on AMP for both post and pages https://screenshot.net/o9vgwum

Post count: 20688

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.

Post count: 67

I tried deactivating all the plugins expect heme plugins and also removed the AMP plugin and reinstalled it, still no effect.

Post count: 20688

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

Post count: 67

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: /

Sitemap: https://insanertech.com/sitemap_index.xml

Post count: 20688

Try to re-save the permalinks in WordPress settings, then check again.

Post count: 67

It worked for posts, but pages are still not working on amp.

Post count: 20688

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

Post count: 67

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?

Post count: 20688

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.

Viewing 14 posts - 1 through 14 (of 14 total)
The forum ‘Newspaper’ is closed to new topics and replies.