Support » Plugin: Better AMP - WordPress Complete AMP » generates infinite redirects

  • Resolved bob14833

    (@bob14833)


    if there is a rewrite rule for a page and AMP version is disabled for destination page and you call a query string url it generates infinite redirects.

    for example if you have this rule in your theme or a plugin:

    add_rewrite_rule(‘nutrition’,’index.php?page_name=food’,’top’);

    then the following link will have infinite redirects if amp version is disabled for the page example.com/food.

    http://example.com/nutrition/?id=1 (all browsers wont open this and show infinite redirect error)

    if you make AMP version enable for the page example.com/food then above link will be working fine.

    I have Better AMP 1.9.7 and WordPress 5.0.1
    It was working fine previously but after recent WordPress update this problem appeared.

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.