Me ka AMP no PHP kuʻina hiki iā ʻoe ke maʻalahi, holoʻokoʻa loa, e hana i nā ʻaoʻao Google AMP no kāu mau pūnaewele.
Hoʻopau i kāu pūnaewele PHP no nā polokalamu kelepona a me ka Google Mobile First Index me ka ʻole o ka papahana ʻana i kāu mana AMPHTML ponoʻī no kēlā me kēia ʻaoʻao.
Hōʻoia iā: hoʻouka. Hoʻoikaika. Piha!
Kahi kihi ma mua o kou hoʻomaka ʻana e hoʻouka i ka plug-in PHP-AMP: No kekahi mau hanana CMS, hāʻawi ʻo amp-cloud.de i nā plugins Google AMP kūikawā i ʻoi aku ka maʻalahi o ka hoʻouka a me ka hoʻokele. - Ma ke ʻano he koho ʻē aʻe i ka "AMP no ka plug-in" PHP , hiki i kekahi o nā plug-in ʻo Google AMP e makemake nei iā ʻoe.
Hoʻoiho i ka mana "AMP no PHP Plugin" i kēia manawa ma ke ʻano he faila ZIP mai ka loulou hoʻoiho aʻe. - Aia ka waihona ZIP i kahi waihona i kapa ʻia "amp" i loaʻa nā faila āpau e pono ai e hoʻouka a hoʻohana i ka plug-in AMP.
Wehe / unuhi i ka faila ZIP i hoʻoiho ʻia.
Hoʻouka i ka waihona unzipped me ka inoa "/ amp /" i ka papa kuhikuhi kumu o kāu pūnaewele pūnaewele i hiki i ke kiʻi i kāu pūnaewele ma lalo o ka URL aʻe:
No ka hoʻāʻo ʻana inā mālama pono ʻia ka waihona ma kāu pūnaewele pūnaewele, e kāhea wale i kēia URL - Inā pololei ke kau ʻana, ʻike ʻoe i kahi leka e haʻi iā ʻoe e hoʻohana ana kāu pūnaewele i ka plug-in AMP mai amp-cloud.de, i ʻole ʻaʻole hoʻokomo pono ʻia ka plugin a pono ʻoe e hele ma waena o nā ʻanuʻu i luna.
ʻO ka hope, e hoʻokomo i ka hoʻokuke ʻana i kēlā me kēia kumu, kahi āu e makemake ai e hāʻawi i ka mana AMP, me ka hoʻohana ʻana i kekahi o kēia mau ʻano a <link rel = "amphtml"> - he lā ma ka ʻāpana <head> o ka waihona pili.
<link rel = "amphtml" href = "http: // www.DeineDomain.de /amp/amp.php?url= IhrArtikelURL " />
<link rel="amphtml" href=" http:// ".$_SERVER['HTTP_HOST']."/amp/amp.php?url=".urlencode(" http:// ".$_SERVER['HTTP_HOST" '].$_SERVER['PHP_SELF']."?".$_SERVER['QUERY_STRING']."")."" />
<?php echo " <!DOCTYPE html> <html> <head> <title> Kou inoa meta ... </title> <link rel="amphtml" href="https://".$_SERVER['HTTP_HOST']."/amp/amp.php?url=".urlencode("https://".$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF']."?".$_SERVER['QUERY_STRING']."")."" /> </head> <body> ʻO ke code kumu kumu o kou kino ... </body> </html> ;" ?>
ʻO ka AMP official no ka PHP plugin mai amp-cloud.de e hoʻoulu i nā ʻaoʻao Mobile i hōʻeleu ʻia (AMP) ma kāu pūnaewele PHP ponoʻī, ma lalo pono o kāu mea ponoʻī ponoʻī, e like me ka ʻōlelo a nā alakaʻi alakaʻi AMP o Google.