AMP Page detection


I want to check an url to see if there is a AMP version of the page.

The one thing I know for sure if exists the rel="amphtml" in header. I gues a regex search would be needed,
Anyone can point me in the right direction, much appreciated.


Have you tried the HttpHeader function?

Also, if you have an example url it would be easier to test.



I found this site, that has the right AMP support.

It's not the header my error, but but the html I think that might throw you off direction. Sorry my bad.



Hi, @Aventura. Xpath will be your best solution. Try this:

=XPathOnUrl( "", "//link[@rel='amphtml']", "href" )

-Tim W.


Thanks, this did the trick.