• Resolved wpmhweb

    (@wppit)


    Hello,
    I removed AMP (I was using the Reading mode) from the website and put the necessary redirect code in the htaccess, but the next day the Google Search Console started complaining and received the “Referenced AMP URL is not an AMP.”
    Is this an expected error?
    Is there anything else I need to do?

    This is the redirect I put in the htaccess:

    # Redirect AMP to non-AMP
    RewriteEngine On
    RewriteCond %{REQUEST_URI} (.+)/amp(.*)$
    RewriteRule ^ %1/ [R=301,L]

    More info: I’m also using Cloudflare and w3tc, I’m not sure if the cache can cause anything, but I purge the cache just in case.

    • This topic was modified 2 years ago by wpmhweb.
Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support Milind More

    (@milindmore22)

    Hello @wppit

    Thank you for contacting us, We can not assist you regarding the .htaccess configuration you will have to contact your hosting provider or hosting expert who can confirm the redirection rules.

    1) Make sure you completely deleted the AMP plugin.

    2) Make sure you cleared all types of cache, site cache, cloudflare cache etc.

    3) Make sure that <link rel="amphtml"> is no longer present on your non-AMP pages.

    4) Google Search Console might send you a warning as it crawls for AMP pages but it will fade in some time as it is no longer able to find the AMP version of the page.

    5) You can also use this mini plugin which can help you redirect AMP pages to non-AMP pages.

    We hope this is helpful!

    Thread Starter wpmhweb

    (@wppit)

    @milindmore22 When I delete the plugin, will I get a prompt to delete the data as well? I asked because after I disabled the plugin, I read that it’s a good idea to delete the data while the plugin is enabled, but when I reenabled the plugin, going to AMP settings now shows a “Something went wrong” message.
    Thanks,

    Plugin Support Milind More

    (@milindmore22)

    Hello @wppit

    You will need to opt-in to delete plugins data

    In case you are not able to access AMP settings, I will recommend using the health check and troubleshooting plugin

    Thread Starter wpmhweb

    (@wppit)

    @milindmore22 I just wanted to give an update. It appears that the errors are slowly disappearing from the Google Search Console.
    I haven’t had the chance to install the health check plugin yet.
    Out of curiosity, what are the chances of running into problems uninstalling the problem if I can’t fix the AMP settings error?
    If I’m unable to fix the plugin, is there any way to manually delete all the data from the plugin?

    Plugin Support Milind More

    (@milindmore22)

    Hello @wppit

    Out of curiosity, what are the chances of running into problems uninstalling the problem if I can’t fix the AMP settings error?
    If I’m unable to fix the plugin, is there any way to manually delete all the data from the plugin?

    If you can’t fix the AMP setting error, there should be an issue as you have removed the plugin. the plugin will keep some residue data, which will not affect your site.

    Yes, You can delete plugin data using the WP CLI commands or use MySQL commands from the response of this topic

    Disclaimer: Run the below commands and SQL query at your own risk.

    Note: Run them first in dev/pre-production environment to reduce the risk of losing the data.

    Plugin Support Milind More

    (@milindmore22)

    @wppit As we didn’t receive a response I’ll mark this as resolved. Feel free to open a new support topic if you require any further assistance.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘is it normal to get Referenced AMP URL is not an AMP in Google after removing it’ is closed to new replies.