Faʻatasi ma le AMP mo le PHP plugin e mafai ona faigofie, atoa otometi, fausia Google AMP itulau mo au 'upega tafaʻilagi.
Faʻalelei lau 'upega tafaʻilagi PHP mo masini feʻaveaʻi ma le Google Mobile First Index e aunoa ma le faʻapolokalameina o lau oe itulau AMPHTML mo au laupepa taʻitasi!
Faʻataʻitaʻi i fafo: Faʻapipiʻi. Faʻaola Maea!
O se fesoasoani ae e te leʻi amata amataina le PHP-AMP plug-in: Mo nisi CMS fofo, amp-cloud.de ofo faʻapitoa Google AMP plug-ins e sili atu ona faigofie ona faʻapipiʻi ma faʻatonutonu! - I le avea ai ma se mea e sui ai le "AMP mo le PHP plug-in" , o se tasi o mea nei a Google AMP plug-ins e ono fiafia iai oe:
Lalotoso i le taimi nei "AMP mo PHP Plugin" lomiga o se ZIP faila mai le mulimuli download sootaga. - O le ZIP faila o loʻo iai se faila e taʻu o le "amp" o loʻo iai uma faila e manaʻomia e faʻapipiʻi ai ma faʻaaoga le AMP plug-in.
Unzip / aveese le download ZIP faila.
Tuʻu i luga le faila unzipped ma le igoa "/ amp /" i le root root o lau 'upega tafaʻilagi ina ia mafai ai ona ausia le faila i luga o lau' upega tafaʻilagi i lalo o le URL lenei:
Ina ia suʻesuʻe pe o teuina saʻo le faila i luga o lau '' upega tafaʻilagi, na o le valaau atu i luga ole URL lea - Afai e saʻo le faʻapipiʻiga, e tatau ona e vaʻai i se feau e taʻu atu ai ia te oe o lau '' upega tafaʻilagi e faʻaaoga le AMP plug-in mai le amp-cloud.de, A leai o le plug e le faʻapipiʻiina saʻo ma e tatau ona e toe uia laʻasaga o loʻo i luga.
I le taimi mulimuli, aofia ai le tuleia o faʻavae taʻitasi, lea e te manaʻo ai e tuʻuina mai le AMP faʻamatalaga, faʻaaoga ai se tasi o nei suiga a <link rel = "amphtml"> - o le aso i le <head> vaega o le tutusa faʻavae.
<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> Lou igoa 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> Lou tino faʻavae code ... </body> </html> ;" ?>
O le AMP aloaia mo PHP plugin mai le amp-cloud.de faʻagaoioia Accelerated Mobile Pages (AMP) i luga o au lava 'upega tafaʻilagi PHP, tuʻu saʻo i lalo o lau oe talimalo, pei ona fautuaina e le Google talimalo talimalo a AMP!