Akhil Moz
Akhil Moz

Reputation: 11

AMP page to regular HTML file redirection and Web version HTML file AMP file redirection?

I am new to AMPs and already have designed amp page for my regular HTML web version without any errors. Now I have question which is about "specifying amp page in HTML file & regular file in AMP page".

  1. Is my website URL require HTTPS connection? Or basic HTTP is enough?

  2. while mentioning in link tag should I place href attribute value as http://google.com/demo/index.html or /index.html is enough?

Upvotes: 0

Views: 510

Answers (1)

Andrew
Andrew

Reputation: 1203

  1. HTTP is enough unless you are serving content from your servers through extended components such as <amp-video> or <amp-iframe>.

  2. You have to use the full URL, ie. http://google.com/demo/index.html, and not a relative URL path, ie. /index.html.

Upvotes: 1

Related Questions