Support » Plugin: AMP for WP - Accelerated Mobile Pages » Actual URL and canonical URL are not the same, amp pages not loading

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Contributor ampforwp

    (@ampforwp)

    Hey @stapolin

    That’s really strange

    Could you please resave permalinks once?

    To use AMP for Custom Post Types, you can you use this extension >https://ampforwp.com/custom-post-type/

    Hope it helps.

    Thread Starter stapolin

    (@stapolin)

    Hi,

    Thanks for reply and link to custom post type plugin.

    I have tried saving permalinks a few times, cleared cache too.

    Here is an example of one of the sites with the issue:

    The AMP Page: https://criminallawyermaryland.net/traffic/?amp

    Non-AMP page:https://criminallawyermaryland.net/traffic/

    Teh amphtml link on non-amp page: <link rel="amphtml" href="https://criminallawyermaryland.net/traffic/amp/" />

    If you try to go to the amphtml link WordPress just redirects back to the normal page.

    I’m not sure why this happened. It seems to have started after I updated the plugin. We are using php 5.6 and latest version of WordPress

    @stapolin – it Look fine On My phone On amp site , and same with normal site

    Thread Starter stapolin

    (@stapolin)

    @svend-rugaard Thanks for checking it. Did you go to the /?amp url or the /amp/ url?

    Its the /amp/ url that google is checking even tho its the /?amp url that is the one thats working, so all google is getting is errors.

    The ?Amp Show the Real mobile site but /Amp Show normal site

    Thread Starter stapolin

    (@stapolin)

    @svend-rugaard That’s the problem.. /amp/ should be showing the amp site because that is what the main site is telling google to look at.

    If i knew where in the plugin the amphtml link is generated, I could probably fix it in 2 minutes. @ampforwp any chance you can share where I can edit this?

    Thanks

    Plugin Contributor ampforwp

    (@ampforwp)

    Hey @stapolin

    I see you are using Static Front Page on your AMP version of your website. I totally understand your issue. In fact, it is a very strange issue.

    Could you please contact us over email team@magazine3.com ? Our teammates will personally help you to fix the issue. Since there are certain restrictions on Forum.

    Thread Starter stapolin

    (@stapolin)

    @ampforwp

    Apologies for delay in replying. Been very busy.

    I have sent that email just now.

    Cheers

    Eoin

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Actual URL and canonical URL are not the same, amp pages not loading’ is closed to new replies.