Viewing 15 replies - 1 through 15 (of 18 total)
  • Thread Starter exsith

    (@exsith)

    This is what the problem is in detail.

    Homepage:

    • In the code: <link rel="amphtml" href="domain.com/amp/" />
    • domain.com/amp/ – HTTP header 200
    • domain.com/amp – HTTP header 301 Moved Permanently -> domain.com/amp/
    • All links in the AMP version lead to domain.com/amp [WRONG!]

    Category:

    • In the code: <link rel="amphtml" href="domain.com/category/amp/" />
    • domain.com/category/amp/ – HTTP header 301 Moved Permanently -> domain.com/category/amp [WRONG!]
    • domain.com/category/amp – HTTP header 200 [WRONG!]
    • All links in the AMP version lead to domain.com/category/amp/

    Posts:

    • In the code: <link rel="amphtml" href="domain.com/post/amp/" />
    • domain.com/post/amp/ – HTTP header 301 Moved Permanently -> domain.com/post/amp [WRONG!]
    • domain.com/post/amp – HTTP header 200 [WRONG!]
    • All links in the AMP version lead to domain.com/post/amp/

    Pages:

    • In the code: <link rel="amphtml" href="domain.com/page/amp/" />
    • domain.com/page/amp/ – HTTP header 301 Moved Permanently -> domain.com/page/amp [WRONG!]
    • domain.com/page/amp – HTTP header 200 [WRONG!]
    • All links in the AMP version lead to domain.com/page/amp/
    • This reply was modified 5 years, 4 months ago by exsith.
    • This reply was modified 5 years, 4 months ago by exsith.
    • This reply was modified 5 years, 4 months ago by exsith.
    • This reply was modified 5 years, 4 months ago by exsith.
    • This reply was modified 5 years, 4 months ago by exsith.
    Plugin Author Mohsin Rafique

    (@mohsinrafique)

    Hi @exsith,

    Thanks for pointing issue out and sorry for the inconvenience.

    We’ll fix it in our next minor release. Will notify you once it’s released.

    Thanks

    Plugin Author Mohsin Rafique

    (@mohsinrafique)

    Hi @exsith,

    Incorrect links to AMP Pages have been resolved resolved in our latest release.

    Let us know if you have any further questions/concerns.

    Thanks,

    Thread Starter exsith

    (@exsith)

    Homepage:

    • All OK!

    Category:

    • In the code: <link rel="amphtml" href="domain.com/category/amp/" /> [OK!]
    • domain.com/category/amp/ – HTTP header 301 Moved Permanently -> domain.com/category/amp [WRONG!]
    • domain.com/category/amp – HTTP header 200 [WRONG!]
    • All links in the AMP version lead to domain.com/category/amp/ [OK!]

    Posts:

    • In the code: <link rel="amphtml" href="domain.com/post/amp/" /> [OK!]
    • domain.com/post/amp/ – HTTP header 301 Moved Permanently -> domain.com/post/amp [WRONG!]
    • domain.com/post/amp – HTTP header 200 [WRONG!]
    • All links in the AMP version lead to domain.com/post/amp/ [OK!]

    Pages:

    • In the code: <link rel="amphtml" href="domain.com/page/amp/" /> [OK!]
    • domain.com/page/amp/ – HTTP header 301 Moved Permanently -> domain.com/page/amp [WRONG!]
    • domain.com/page/amp – HTTP header 200 [WRONG!]
    • All links in the AMP version lead to domain.com/page/amp/ [OK!]
    Plugin Author Mohsin Rafique

    (@mohsinrafique)

    Hi @exsith,

    Everything is working perfectly fine at out demo server. Can you please share reference URLs where these links are causing issue?

    Thanks,

    Thread Starter exsith

    (@exsith)

    If your demo site is https://demo.ampwp.io/amp/ then there is a slash at the beginning and not at the end.

    Plugin Author Mohsin Rafique

    (@mohsinrafique)

    Sorry not sure what you mean? Could be please elaborate further.

    Thread Starter exsith

    (@exsith)

    Your demo server is https://demo.ampwp.io/amp/, right? If it is, then there is a slash at the beginning, in this case there will be no errors. And I mean when the slash is at the end.

    Thread Starter exsith

    (@exsith)

    After updating the problem is the same as before. In all three types of taxonomies (categories, pages and posts) in the code there is a slash at the end (as it should be), but at the same time, when checking HTTP response headers it gives 301 Moved Permanently. And the redirect goes to the address without a slash https://prnt.sc/ma073q
    Can you fix this?

    • This reply was modified 5 years, 3 months ago by exsith.
    Plugin Author Mohsin Rafique

    (@mohsinrafique)

    Hi @exsith,

    Can you please tell us from where (website or any other third party service) you’re checking HTTP response headers?

    Thanks,

    Thread Starter exsith

    (@exsith)

    https://headers.cloxy.net/
    On any other service, the check gives the same results.

    The problem occurs only when the plugin is set to show a slash at the end of the address, while on your online demo slash is at the beginning.

    Plugin Author Mohsin Rafique

    (@mohsinrafique)

    Hi @exsith,

    Slash mean AMP?

    Thread Starter exsith

    (@exsith)

    The slash symbol “/” at the end of the URL.
    For example, https://test.com/post/amp/

    Plugin Author Mohsin Rafique

    (@mohsinrafique)

    Hi @exsith,

    I am sorry but I am bit confuse. Can you please guide (step by step) me how can I set slash at the end of my online demo.

    By the way, this is my online demo headers result.

    Thread Starter exsith

    (@exsith)

Viewing 15 replies - 1 through 15 (of 18 total)
  • The topic ‘Slash at the end’ is closed to new replies.