PHP AMP Plugin - Download & Faatonuga

Faʻatasi ma le AMP mo le PHP plugin e mafai ona faigofie, atoa otometi, fausia Google AMP itulau mo au 'upega tafaʻilagi.

Faʻalelei lau 'upega tafaʻilagi PHP mo masini feʻaveaʻi ma le Google Mobile First Index e aunoa ma le faʻapolokalameina o lau oe itulau AMPHTML mo au laupepa taʻitasi!

Faʻataʻitaʻi i fafo: Faʻapipiʻi. Faʻaola Maea!


Faʻasalalauga

Faatu le plugin AMP PHP


description

O se fesoasoani ae e te leʻi amata amataina le PHP-AMP plug-in: Mo nisi CMS fofo, amp-cloud.de ofo faʻapitoa Google AMP plug-ins e sili atu ona faigofie ona faʻapipiʻi ma faʻatonutonu! - I le avea ai ma se mea e sui ai le "AMP mo le PHP plug-in" , o se tasi o mea nei a Google AMP plug-ins e ono fiafia iai oe:


Laʻasaga-1: Download "AMP mo PHP Plugin"

Lalotoso i le taimi nei "AMP mo PHP Plugin" lomiga o se ZIP faila mai le mulimuli download sootaga. - O le ZIP faila o loʻo iai se faila e taʻu o le "amp" o loʻo iai uma faila e manaʻomia e faʻapipiʻi ai ma faʻaaoga le AMP plug-in.


Sitepu-2: Aveʻese le "AMP mo PHP Plugin" -ZIP-faila

Unzip / aveese le download ZIP faila.

  • A maeʻa ona aveʻese / aveʻese mai oe ua tatau nei ona i ai se "faila" ma le igoa "/ amp /" o loʻo i ai le PHP-AMP plug-in faila o loʻo i ai.

Laʻasaga-3: Sefe PHP faila faila i luga ole upega tafailagi

Tuʻu i luga le faila unzipped ma le igoa "/ amp /" i le root root o lau 'upega tafaʻilagi ina ia mafai ai ona ausia le faila i luga o lau' upega tafaʻilagi i lalo o le URL lenei:

  • www.DeineDomain.de/amp/

Ina ia suʻesuʻe pe o teuina saʻo le faila i luga o lau '' upega tafaʻilagi, na o le valaau atu i luga ole URL lea - Afai e saʻo le faʻapipiʻiga, e tatau ona e vaʻai i se feau e taʻu atu ai ia te oe o lau '' upega tafaʻilagi e faʻaaoga le AMP plug-in mai le amp-cloud.de, A leai o le plug e le faʻapipiʻiina saʻo ma e tatau ona e toe uia laʻasaga o loʻo i luga.

  • www.DeineDomain.de/amp/amp.php
    (Ioe e tatau ona e suia le www.yourdomain.de i le tuatusi o lau 'upega tafaʻilagi)

Laasaga-4: faʻaofi le faʻailoga AMPHTML!

I le taimi mulimuli, aofia ai le tuleia o faʻavae taʻitasi, lea e te manaʻo ai e tuʻuina mai le AMP faʻamatalaga, faʻaaoga ai se tasi o nei suiga a <link rel = "amphtml"> - o le aso i le <head> vaega o le tutusa faʻavae.

  • Faʻamatalaga 1:

    <link rel = "amphtml" href = "http: // www.DeineDomain.de /amp/amp.php?url= IhrArtikelURL " />
    • Sui le "http: //" vaega ma le "https: //" pe afai oe faʻaaogaina le HTTPS i luga o lau 'upega tafaʻilagi
    • Sui le vaega "www.yourdomain.de" ma le vaega o lau 'upega tafaʻilagi
    • Sui le vaega "Lau Tusitusiga URL" ma le UTF8 faʻanumeraina URL o vaega taʻitasi na e faʻaaogaina ai le faʻailoga AMPHTML (aofia ai. "Http: //" poʻo le "https: //")

      Ina ia faʻavasega lelei le URL, e mafai ona e faʻaaogaina le mea lea e leai se totogi i luga ole laiga URL i luga ole laiga, mo se faʻataʻitaʻiga: https://www.url-encode-online.rocks/

      Faʻataʻitaʻiga mo le UTF-8 encoded URL:
      https% 3A% 2F% 2Fwww.DeineDomain.de% 2FDeinPfad% 2FDeineDatei.php% 3Fparameter% 3DS% C3% BC% C3% 9F% 26sprache% 3DDE

      Faʻataʻitaʻiga mo le UTF-8 decoded URL:
      https://www.DeineDomain.de/DeinPfad/DeineDatei.php?parameter=Süß&sprache=DE

  • Variant 2:

    <link rel="amphtml" href=" http:// ".$_SERVER['HTTP_HOST']."/amp/amp.php?url=".urlencode(" http:// ".$_SERVER['HTTP_HOST" '].$_SERVER['PHP_SELF']."?".$_SERVER['QUERY_STRING']."")."" />
    • A e faʻaogaina le HTTPS i luga o lau tulaga itulau i luga ole laiga, suia vaega e lua "http: //" i le "https: //"

AMP PHP code faʻataʻitaʻiga


code
<?php echo " <!DOCTYPE html> <html> <head> <title> Lou igoa 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> Lou tino faʻavae code ... </body> </html> ;" ?>

Aisea e faʻaaoga ai le AMP PHP plugin?


power

O le AMP aloaia mo PHP plugin mai le amp-cloud.de faʻagaoioia Accelerated Mobile Pages (AMP) i luga o au lava 'upega tafaʻilagi PHP, tuʻu saʻo i lalo o lau oe talimalo, pei ona fautuaina e le Google talimalo talimalo a AMP!


Faʻasalalauga