Ndi pulogalamu yowonjezera ya AMP ya PHP mutha mosavuta, mwadongosolo, ndikupanga masamba a Google AMP amalo patsamba lanu.
Konzani tsamba lanu la PHP pazida zamagetsi ndi Google Mobile First Index popanda kupanga pulogalamu yanu ya AMPHTML patsamba lanu lililonse!
Yesani: Ikani. Yambitsani. Zatha!
Malangizo musanayambe kukhazikitsa pulogalamu yolumikizira PHP-AMP: Pa mayankho ena a CMS, amp-cloud.de imapereka ma plug-ins apadera a Google AMP omwe ndiosavuta kukhazikitsa ndikuwongolera! - Mosiyana ndi "AMP for PHP plug-in" , imodzi mwama plug-ins a Google AMP ikhoza kukhala yosangalatsa kwa inu:
Tsitsani mtundu wapano wa "AMP for PHP Plugin" ngati fayilo ya ZIP kuchokera pa ulalo wotsatirawu. - Fayilo ya ZIP ili ndi chikwatu chotchedwa "amp" chomwe chimakhala ndi mafayilo onse ofunikira kukhazikitsa ndikugwiritsa ntchito plug-in ya AMP.
Tsegulani / tulutsani fayilo ya ZIP yojambulidwa.
Kwezani chikwatu chosatulutsidwa ndi dzina "/ amp /" mu chikwatu cha seva yanu kuti fodayo ikwaniritsidwe patsamba lanu pansi pa ulalowu:
Kuti muwone ngati fodayo yasungidwa bwino pa seva yanu, ingoyimbani ulalo wotsatirawu - Ngati kuyika kuli kolondola, muyenera kuwona uthenga womwe umakuwuzani kuti tsamba lanu limagwiritsa ntchito plug-in ya AMP kuchokera amp-cloud.de, apo ayi pulogalamu yowonjezera siyimayikidwa molondola ndipo muyenera kuyambiranso izi:
Pomaliza, phatikizani kukankha chilichonse, chomwe mukufuna kupereka mtundu wa AMP, pogwiritsa ntchito chimodzi mwanjira zotsatirazi <link rel = "amphtml"> - tsiku limodzi mu <mutu> gawo loyambira.
<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> Mutu wanu wa 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> Khodi yanu yamagetsi ... </body> </html> ;" ?>
AMP yovomerezeka ya PHP yochokera ku amp-cloud.de imathandizira Masamba Amtundu Wofulumira (AMP) pamawebusayiti anu a PHP, mwachindunji pansi pa omwe mumayang'anira, malinga ndi malangizo a Google a AMP!