Iyada oo la adeegsanayo AMP -ga loogu talagalay rakibidda PHP waxaad si fudud, gebi ahaanba si otomaatig ah, ugu abuuri kartaa boggaga AMP ee Google bogaggaaga.
U hagaaji websaydhkaaga PHP aaladaha mobilada iyo Tusmada Koowaad ee Google Mobile adigoon u baahnayn inaad barnaamij u samayso noocaaga AMPHTML ee bogag kasta!
Tijaabi: Ku rakib. Dhaqaaq. Dhamaaday!
Tilmaan ka hor intaadan bilaabin rakibidda gelinta PHP-AMP: Xalalka CMS qaarkood, amp-cloud.de waxay bixisaa plug-ins Google AMP oo gaar ah oo xitaa ka sahlan in la rakibo oo la maareeyo! -Beddelka "AMP for PHP plug-in" , mid ka mid ah soo-raacayaasha AMP ee Google ee soo socda ayaa laga yaabaa inay adiga xiiseeyaan:
Kala soo bax nooca "AMP for PHP Plugin" ee hadda ah faylka ZIP ka soo deg degga soo socda ee soo degsashada ah. - Faylka ZIP wuxuu ka kooban yahay fayl loo yaqaan "amp" kaas oo ka kooban dhammaan faylasha loo baahan yahay in lagu rakibo oo la isticmaalo fiilada AMP.
Feeji / soo saar faylka ZIP ee la soo dejiyey.
Ku soo rar galka aan zip-ga lahayn ee leh magaca "/ amp /" galka xididka seerfarka mareegta si galka loogala xiriiro mareegahaaga URL-ka soo socda:
Si aad u tijaabiso in galka si sax ah loogu keydiyay shabakadaada, si fudud ugu yeer URL-kan soo socda - Haddii rakibitaanku sax yahay, waa inaad aragtaa fariin kuu sheegeysa in websaydhkaagu uu adeegsanayo fiilada AMP ee ka socota amp-cloud.de, haddii kale kumbuyuutarka si sax ah looma rakibin waana inaad martaa tallaabooyinka kor ku xusan markale:
Ugu dambayntii, ku dar inaad riixdo saldhig kasta , oo aad doonayso inaad siiso nooca AMP, adigoo adeegsanaya mid ka mid ah noocyada kala duwan ee <link rel = "amphtml"> - maalin ku jirta <head> qaybta saldhigga u dhigma.
<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> Magacaaga 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> Summada isha jirkaaga ... </body> </html> ;" ?>
Rasmiga AMP ee loogu talagalay plugin-ka PHP ee ka socda amp-cloud.de wuxuu hawlgaliyaa Boggaga Mobilada Xawaareysan (AMP) ee websaydhkaaga ah ee PHP, si toos ah hoosta martigaliyahaaga, sida lagu taliyay tilmaamaha martigeliyaha AMP ee Google!