Viewing 5 replies - 1 through 5 (of 5 total)
  • When you’re using paired AMP (via the plugins reader or transitional modes) you’ll have AMP versions of your content running alongside your canonical version. Search engines will determine the optimum version of your site to be served to visitors.

    In order to differentiate between the different versions of your content they will have to feature different URL addresses, in your case the /?amp endpoints. It’s not possible to have different versions of your content (ie. AMP and non AMP) using the same URL.

    What you may wish to consider is using AMP in standard mode. That way there is only one version of your content, your site is fully AMP. While your site will be fully AMP you can then disable AMP individually on a per page/post basis or you can disable AMP for specific content types or templates. Using this approach you’ll never have visible AMP endpoints while benefitting from AMP URLs unless selectively opted out.

    The plugins website FAQs has more information on the above:
    https://amp-wp.org/documentation/frequently-asked-questions/

    You may also be interested to know that there will be changes to the plugin coming soon, allowing you to use AMP components and features on non AMP pages.

    Let me know if you have any further queries on the above.

    Thread Starter unnamed

    (@yazarmfa)

    Thank you, I changed the theme. I am now using amp standard mode.

    Plugin Author Weston Ruter

    (@westonruter)

    Alternatively, if you need to use a paired AMP configuration, you can turn off AMP-to-AMP linking so that the links on AMP pages don’t link to other AMP versions of pages. This is done via the following PHP code:

    add_filter( 'amp_to_amp_linking_enabled', '__return_false' );

    It is enabled by default in Transitional mode, but disabled by default in Reader (unless Mobile Redirection is enabled). It is not relevant in Standard mode, since there is no separate AMP version.

    Plugin Author Weston Ruter

    (@westonruter)

    That being said, we do recommend Standard mode if your theme supports it.

    Thread Starter unnamed

    (@yazarmfa)

    Thanks this code solved my problem. This is what I was looking for.

    add_filter( 'amp_to_amp_linking_enabled', '__return_false' );

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How to use Non Amp URLs on Amp Pages?’ is closed to new replies.