Is it safe to do a htaccess rewrite for mobile traffic to amp pages?

by Kannan   Last Updated May 13, 2019 09:04 AM

I have a requirement to use the same URL for both desktop and mobile devices. On mobile, I want to serve amp HTML while on the desktop I want to render normal HTML. In such case is it safe (from SEO and Adwords perspective) to detect the user agent and issue a rewrite rule to load amp HTML (from an internal URL) for mobile?

(I know of "link canonical" method of implementing amp for mobile devices. But in my case I need to use a common URL.)

Related Questions

Updated April 28, 2017 05:04 AM

Updated July 12, 2018 08:04 AM

Updated June 18, 2019 16:04 PM

Updated September 07, 2016 09:01 AM

Updated August 14, 2016 08:03 AM