AMP Page detection


#1

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.


#2

Have you tried the HttpHeader function?
https://seotoolsforexcel.com/httpheader/

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


#3

Hi,

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

https://daveroessler.com/

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

BR


#4

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

=XPathOnUrl( "https://daveroessler.com/", "//link[@rel='amphtml']", "href" )

-Tim W.


#5

Thanks, this did the trick.