With the AMP for PHP plugin you can easily, completely automatically, create Google AMP pages for your websites.
Optimize your PHP website for mobile devices and the Google Mobile First Index without having to program your own AMPHTML version for each of your pages!
Test it out: Install. Activate. Finished!
A tip before you start with the PHP-AMP plug-in installation: For some CMS solutions, amp-cloud.de offers special Google AMP plug-ins that are even easier to install and manage! - As an alternative to the "AMP for PHP plugin" , one of the following Google AMP plugins could be of interest to you:
Download the current "AMP for PHP Plugin" version as a ZIP file from the following download link. - The ZIP file contains a folder called "amp" which contains all the files required to install and use the AMP plugin.
Unzip / extract the downloaded ZIP file.
Upload the unzipped folder with the name "/ amp /" into the root directory of your web server so that the folder can be reached on your website under the following URL:
To test whether the folder is correctly stored on your web server, simply call up the following URL - If the installation is correct, you should see a message that tells you that your website uses the AMP plug-in from amp-cloud.de , otherwise the plugin is not installed correctly and you should go through the above steps again:
At last, include pushing each base, for which you want to provide AMP version, using one of the following variants a <link rel = "amphtml"> - a day in the <head> section of the corresponding 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> Your meta title ... </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> Your body source code ... </body> </html> ;" ?>
The official AMP for PHP plugin from amp-cloud.de activates Accelerated Mobile Pages (AMP) on your own PHP websites, directly under your own host, as recommended by Google's AMP host guidelines !