Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi @romeoo,

    In order to disable the AMP on the pages automatically please disable the option of Pages from the Settings->General->Pages.
    See this screenshot: https://take.ms/jBgns
    Hope it helps.

    Thread Starter romeoo

    (@romeoo)

    Thanks my friend for your reply
    what i mean disable the all amp either homepage or posts or pages
    when i disable it in the plugin
    the archived posts will appear as 404 error
    all visitors when come from google when open the post will display 404 error
    so i think i need to redirect all amp posts to the original url

    Hi @romeoo,

    Can you tell me that why you want to disable the AMP on your Pages, posts and Homepage?

    Having deleted the plugin so it is no longer serving AMP pages you can use a 301 redirect in your .htaccess file such as explained here

    https://www.wpbeginner.com/wp-tutorials/how-to-properly-disable-google-amp-in-wordpress/

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

    Hi @romeoo,

    And please note that when you disable our plugin the pages and posts are automatically redirected to their original URL, as we have already implemented this in our plugin that when a user disable our plugin then the amp URLs should be redirected to its original URLs.
    So you can disable the plugin without worrying about the redirection.
    Hope it helps.

    • This reply was modified 6 years, 2 months ago by Abdul Jabbar.
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Need disable all amp pages in my site’ is closed to new replies.