Tare da AMP don kayan aikin PHP zaka iya sauƙi, gaba ɗaya ta atomatik, ƙirƙirar shafukan Google AMP don rukunin yanar gizonku.
Inganta gidan yanar gizonku na PHP don na'urorin hannu da kuma Google Mobile Fihirisar Farko ba tare da shirya naku AMPHflix version ga kowane shafinku ba!
Gwada shi: Shigar. Kunna. An gama!
Nasihu kafin fara shigar da plug-in PHP-AMP: Don wasu mafita na CMS, amp-cloud.de yana ba da plug-ins na musamman na AMP na Google wanda har ma ya fi sauƙi don shigarwa da sarrafawa! -A matsayin madadin "AMP don plug-in PHP" , ɗayan plug-ins na AMP na Google na iya zama abin sha'awa a gare ku:
Zazzage nau'in "AMP don PHP Plugin" na yanzu azaman fayil ɗin ZIP daga mahadar saukarwa mai zuwa. - Fayil din ZIP na dauke da wani folda da ake kira "amp" wanda ya kunshi duk fayilolin da ake buƙata don girkawa da amfani da toshe AMP.
Cire / cire fayil ɗin ZIP da aka sauke.
Sanya babban fayil ɗin da ba a buɗe ba tare da suna " / amp /" a cikin tushen tushen sabar gidan yanar gizon ku don a iya isa ga babban fayil ɗin akan gidan yanar gizon ku ƙarƙashin URL mai zuwa:
Don gwada ko an adana babban fayil ɗin a kan sabar yanar gizonku, kawai kira adireshin da ke biye - Idan shigarwar daidai ne, ya kamata ku ga saƙo wanda zai gaya muku cewa rukunin yanar gizonku yana amfani da AMP toshe daga amp-cloud.de, in ba haka ba an shigar da plugin ɗin daidai kuma ya kamata ku sake bi ta matakan da ke sama:
A ƙarshe, haɗa da tura kowane tushe, wanda kake son samar da sigar AMP, ta amfani da ɗayan ɗayan bambance-bambancen masu biyowa a '' link rel = "amphtml"> - yini a cikin sashin <kai> na tushen da ya dace.
<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> Taken 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> Lambar asalin jikin ku ... </body> </html> ;" ?>
AMP na hukuma don tallata PHP daga amp-cloud.de tana kunna Saukakakkun Shafukan Wayar Salula (AMP) akan rukunin yanar gizonku na PHP, kai tsaye ƙarƙashin mai gidanku, kamar yadda shawarwarin rundunar AMP na Google suka bada shawara!