Nge- plugin ye-AMP ye-PHP ungakwazi kalula, ngokuzenzakalelayo, ukwenza amakhasi e-Google AMP akhelwe amawebhusayithi akho.
Lungiselela iwebhusayithi yakho ye-PHP yamadivayisi eselula ne- Google Mobile First Index ngaphandle kokuhlela uhlelo lwakho lwe-AMPHTML ekhasini ngalinye lakho!
Ihlole: Faka. Yenza kusebenze. Qedela!
Ithiphu ngaphambi kokuthi uqale ukufaka i-plug-in ye-PHP-AMP: Kwezinye izixazululo ze-CMS, i-amp-cloud.de inikeza ama-plug-in akhethekile e-Google AMP okulula ukuwenza nokuwaphatha! - Njengenye indlela "ye-AMP ye-plug-in ye-PHP" , enye yalezi ezilandelayo ze-Google AMP plug-in ingase ibe nentshisekelo kuwe:
Landa inguqulo yamanje ye-"AMP ye-PHP Plugin" njengefayela le-ZIP usebenzisa isixhumanisi sokulanda esilandelayo. - Ifayela le-ZIP liqukethe ifolda ebizwa ngokuthi "amp" equkethe wonke amafayela adingekayo ukuze kufakwe nokusebenzisa i-plugin ye-AMP.
Vula / khipha ifayela le-ZIP elilandiwe.
Faka ifolda engafakwanga uziphu enegama "/ amp /" enkombeni yomsuka yesiphakeli sakho sewebhu ukuze ifolda ifinyelelwe kuwebhusayithi yakho ngaphansi kwe-URL elandelayo:
Ukuhlola ukuthi ngabe ifolda igcinwe kahle yini kuseva yakho yewebhu, mane ubize i-URL elandelayo - Uma ukufakwa kulungile, kufanele ubone umyalezo okutshela ukuthi iwebhusayithi yakho isebenzisa i-plug-in ye-AMP esuka ku-amp-cloud.de, ngaphandle kwalokho i-plugin ayifakiwe kahle futhi kufanele uphinde uhambe ngezinyathelo ezingenhla:
Ekugcineni, faka phakathi ukusunduza isisekelo ngasinye , ofuna ukusinikeza inguqulo ye-AMP, usebenzisa okunye kokulandelayo i- <link rel = "amphtml"> - usuku esigabeni se- <head> sesisekelo esihambisanayo.
<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> Isihloko sakho se-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> Ikhodi yomthombo womzimba wakho ... </body> </html> ;" ?>
I-AMP esemthethweni ye-plugin ye-PHP evela ku-amp-cloud.de isebenzisa ama-Accelerated Mobile Pages (AMP) kumawebhusayithi wakho we-PHP, ngqo ngaphansi komphathi wakho, njengoba kunconywe imihlahlandlela yokusingathwa kwe-AMP yakwaGoogle!