Hi @bharatlok,
Thanks for letting us know about this.
Do you have access to the server error log?
It looks like this is returning a 500 response (Internal Server Error):
https://www.nobroker.in/blog/how-to-keep-your-home-warm-during-indian-winters/?amp
@bharatlok Which mode of the plugin is active? Is it classic, paired, or native?
Here is where the URL is generated: https://github.com/ampproject/amp-wp/blob/8f7a60ac3484ca6aa7b1ba603af33046a482ca3e/includes/amp-helper-functions.php#L177-L190
The amp_get_current_url() function is also used in generating this: https://github.com/ampproject/amp-wp/blob/8f7a60ac3484ca6aa7b1ba603af33046a482ca3e/includes/amp-helper-functions.php#L40-L58
I suspect there is a problem with the preg_replace() call in the amp_get_current_url() function. Otherwise it would seem that perhaps the $_SERVER['REQUEST_URI'] variable is not set.
Do you have a subdirectory installation of WordPress? Can you share the return value of a call to home_url( '/' )?
Thanks!
How do I redirect from AMP to my normal pages when someone is visiting my site from a desktop (not mobile)? my page is https://myshifting.in i want it’s normal pages on desktop site.
Currently AMP pages are normally only presented to mobile browsers, so no such redirect is necessary. It’s also not supported.
When using native AMP mode, the site is only available in AMP so there are no separate URLs to begin with.
Thanks for your quick support. I really appreciate that.