generates infinite redirects
-
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.
The topic ‘generates infinite redirects’ is closed to new replies.