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.
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?
https://seotoolsforexcel.com/httpheader/
Also, if you have an example url it would be easier to test.
Hi,
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.
BR
Hi, @Aventura. Xpath will be your best solution. Try this:
=XPathOnUrl( "https://daveroessler.com/", "//link[@rel='amphtml']", "href" )
-Tim W.
Thanks, this did the trick.