Iine AMP yePHP plugin unogona nyore, otomatiki, kugadzira Google AMP mapeji emawebhusaiti ako.
Gadziridza yako webhusaiti yePHP kune nhare mbozha uye neGoogle Mobile Yekutanga Index pasina kuita chirongwa chako cheAMPHTML vhezheni yega yega yemapeji ako!
Edza iyo kunze: Isa. Activate. Yapera!
Zano usati watanga kuisa iyo PHP-AMP plug-in: Kune dzimwe mhinduro dzeCMS, amp-cloud.de inopa yakakosha maGoogle AMP plug-ins ayo ari nyore kuisa nekugadzirisa! - Seimwe nzira kune "AMP yePHP plug-in" , imwe yeanotevera maGoogle AMP plug-ins inogona kufarira iwe:
Dhawunirodha yazvino "AMP yePHP Plugin" vhezheni seZIP faira kubva pane inotevera download dhawunirodhi. - Iyo Zip faira ine dhairekita inonzi "amp" iyo ine mafaera ese anodikanwa kumisikidza uye kushandisa AMP plug-in.
Unzip / bvisa faira reZIP rakadzingwa.
Isa iyo isina kuvharwa dhairekitori ine zita rekuti "/ amp /" mumidzi dhairekitori rewebhu server yako kuitira kuti dhairekitori riwanikwe pane webhusaiti yako pasi peiyo inotevera URL:
Kuti uone kana dura racho rakachengetedzwa zvakanaka pawebhu webhu yako, ingo daidza iyo inotevera URL - Kana iko kuisirwa kuri kwechokwadi, unofanirwa kuona meseji inokuudza kuti webhusaiti yako inoshandisa AMP plug-in kubva amp-cloud.de, zvikasadaro plugin haina kuiswa nenzira kwayo uye iwe unofanirwa kupfuura nematanho ari pamusoro zvakare:
Pakupedzisira, sanganisira kusundidzira base imwe neimwe , iyo yaunoda kupa AMP vhezheni, uchishandisa imwe yeanotevera akasiyana a <link rel = "amphtml"> - zuva mune <head> chikamu cheiyo inoenderana base.
<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> Yako meta zita ... </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> Yako kodhi sosi kodhi ... </body> </html> ;" ?>
Iyo yepamutemo AMP yePPP plugin kubva kuam-cloud.de inomutsa Accelerated Mobile Mapeji (AMP) pane ako wega mawebhusaiti ePHP, zvakananga pasi peako wega host, sezvakakurudzirwa neGoogle's AMP inomirira nhungamiro!