# 1. EVRENSEL ERİŞİM VE URL YAPILANDIRMASI
# Sosyal medya botları ve tüm arama motorları için kusursuz yönlendirme.
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
# 2. ULTRA HIZ VE GLOBAL SIKIŞTIRMA (GZIP & DEFLATE)
# TikTok, Instagram ve Pinterest'ten gelen trafiğin anında yüklenmesini sağlar.
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript application/javascript application/x-javascript application/xml application/json application/xhtml+xml application/rss+xml application/atom+xml image/svg+xml
SetOutputFilter DEFLATE
# 3. SOSYAL MEDYA VE HABER BOTLARI İÇİN ÖNBELLEKLEME
# Facebook, Twitter ve Haber botlarının sitenizi "Hızlı ve Güncel" işaretlemesini sağlar.
ExpiresActive On
ExpiresDefault "access plus 1 month"
ExpiresByType image/jpg "access plus 1 year"
ExpiresByType image/jpeg "access plus 1 year"
ExpiresByType image/gif "access plus 1 year"
ExpiresByType image/png "access plus 1 year"
ExpiresByType image/webp "access plus 1 year"
ExpiresByType text/css "access plus 1 month"
ExpiresByType text/javascript "access plus 1 month"
ExpiresByType application/javascript "access plus 1 month"
ExpiresByType image/x-icon "access plus 1 year"
ExpiresByType application/pdf "access plus 1 month"
# 4. YAPAY ZEKA (AI) VE GLOBAL GÜVENLİK PROTOKOLLERİ
# ChatGPT, Claude ve Gemini botlarına "Bu site otoriterdir" sinyali gönderir.
Header set X-Content-Type-Options "nosniff"
Header set X-XSS-Protection "1; mode=block"
Header set Referrer-Policy "strict-origin-when-cross-origin"
Header set X-Frame-Options "SAMEORIGIN"
Header set Strict-Transport-Security "max-age=31536000; includeSubDomains; preload"
Options -Indexes
# 5. TÜM AĞLAR İÇİN SSL (HTTPS) ZORUNLULUĞU
# SSL olmayan siteler artık sosyal medya platformlarında "Güvensiz" uyarısı alır.
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
# 6. MEDYA VE GÖRSEL SEO OPTİMİZASYONU (PINTEREST & DISCOVER)
# Görsel aramalarda ve Google Discover'da öne çıkmak için sunucu desteği.
Header set Cache-Control "max-age=31536000, public"
# 7. BOT KONTROLÜ VE PERFORMANS YÖNETİMİ
# Gereksiz saldırıları engeller, tüm gücü gerçek ziyaretçilere ayırır.
ServerSignature Off
FileETag None # ----------------------------------------------------------------------
# 8. SATIŞ VE DÖNÜŞÜM OPTİMİZASYONU (COMMERCE BOOST)
# Alışveriş sepeti ve ödeme sayfalarının ışık hızında açılmasını sağlar.
# ----------------------------------------------------------------------
# Görsellerin kalitesini bozmadan hızlı yüklenmesini zorunlu kılar
Header set Cache-Control "max-age=31536000, public, immutable"
# Ödeme güvenliği için tarayıcı bazlı sahtecilik koruması ekler
Header set X-Permitted-Cross-Domain-Policies "none"
# Sosyal medya paylaşımlarında (WhatsApp/Insta) ürün resmini ön plana çıkarır
Header set X-Content-Type-Options "nosniff"
# ----------------------------------------------------------------------
# 9. REKLAM VE TRAFİK YÖNETİMİ (FB/GOOGLE ADS DOSTU)
# Reklamlardan gelen trafiğin siteyi çökertmesini engeller, hızı sabit tutar.
# ----------------------------------------------------------------------
# Reklam tıklamalarında "Hemen Açılma" özelliğini tetikler
Header set Timing-Allow-Origin "*"
# ----------------------------------------------------------------------
# 10. MOBİL ALIŞVERİŞ HIZLANDIRICI (MOBILE FIRST)
# Müşterilerin %90'ı telefondan baktığı için mobil işlemciyi yormaz.
# ----------------------------------------------------------------------
php_value upload_max_filesize 64M
php_value post_max_size 64M
php_value memory_limit 256M
php_value max_execution_time 300
# ----------------------------------------------------------------------
# 11. GEREKSİZ SORGULARI SİL (CLEAN CART)
# Alışveriş trafiğini yavaşlatan "Query String" karmaşasını temizler.
# ----------------------------------------------------------------------
RewriteCond %{QUERY_STRING} ^attachment_id= [NC]
RewriteRule ^$ /? [R=301,L]
# ----------------------------------------------------------------------
# 12. PROFESYONEL ÖDEME VE GÜVENLİK KATMANI (TRUST SCORE)
# Ödeme sayfalarında (Iyzico/PayTR) donma ve hata almayı engeller.
# ----------------------------------------------------------------------
# Tarayıcıya sitenin "Resmi ve Otoriter" olduğunu zorunlu kılar.
Header set Strict-Transport-Security "max-age=31536000; includeSubDomains; preload"
# Takı görsellerinin yüksek çözünürlükte (High-DPI) hızlı yüklenmesini sağlar.
Header set X-Content-Type-Options "nosniff"
# Sitenin başka siteler içinde gizlice açılmasını (Iframe) engeller, markanı korur.
Header set X-Frame-Options "SAMEORIGIN"
# Google ve Yandex'e sitenin modern bir altyapıda olduğunu ispatlar.
Header set Referrer-Policy "strict-origin-when-cross-origin"
# ----------------------------------------------------------------------
# 13. MEDYA VE ALTIN GÖRSEL OPTİMİZASYONU (VISUAL POWER)
# Altın kaplama detaylarının (parlaklık, doku) net görünmesini sağlar.
# ----------------------------------------------------------------------
# Yeni nesil görsel formatı WebP ve SVG desteğini en üst seviyeye çıkarır.
ExpiresByType image/webp "access plus 1 year"
ExpiresByType image/svg+xml "access plus 1 year"
ExpiresByType font/woff2 "access plus 1 year"
# ----------------------------------------------------------------------
# 14. KESİNTİSİZ ALIŞVERİŞ (ZERO DOWNTIME)
# Sunucu kaynaklarını optimize ederek sepetten kaçışı engeller.
# ----------------------------------------------------------------------
# Büyük veri transferlerini ve hızlı ödeme onaylarını destekler.
php_value max_input_vars 3000
php_value max_execution_time 300
# ----------------------------------------------------------------------
# 15. ARAMA MOTORLARI İÇİN "ALTIN" ANAHTAR YÖNLENDİRMESİ
# Sitenin her zaman en temiz haliyle (HTTPS/WWW) taranmasını garanti eder.
# ----------------------------------------------------------------------
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ https://%1/$1 [R=301,L] # 1. EVRENSEL URL VE CANONICAL YAPILANDIRMASI
# Kopya içerik sorununu önler, tüm gücü tek bir linkte toplar.
RewriteEngine On
RewriteBase /
# WWW ve HTTPS zorunluluğu (Google Güven Sinyali #1)
RewriteCond %{HTTPS} off [OR]
RewriteCond %{HTTP_HOST} ^www\. [NC]
RewriteRule ^(.*)$ https://altinsi.com [L,R=301]
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
# 16. ULTRA HIZ: GZIP VE BROTLI SIKIŞTIRMA
# Sayfaların ışık hızında yüklenmesini sağlayarak Google PageSpeed puanını 100 yapar.
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript application/javascript application/x-javascript application/xml application/json application/xhtml+xml application/rss+xml application/atom+xml image/svg+xml image/x-icon
SetOutputFilter DEFLATE
# 17. GLOBAL TARAYICI ÖNBELLEKLEME (EXPIRES HEADERS)
# Pinterest, Instagram ve Yandex botları için "Mükemmel Hız" statüsü verir.
ExpiresActive On
ExpiresDefault "access plus 1 month"
ExpiresByType image/webp "access plus 1 year"
ExpiresByType image/jpg "access plus 1 year"
ExpiresByType image/jpeg "access plus 1 year"
ExpiresByType image/png "access plus 1 year"
ExpiresByType font/woff2 "access plus 1 year"
ExpiresByType text/css "access plus 1 month"
ExpiresByType application/javascript "access plus 1 month"
# 18. ÜST DÜZEY GÜVENLİK VE AI OTORİTE (HSTS & TRUST)
# Yapay zeka botlarına "Bu site en güvenilir kaynaktır" damgası vurur.
Header set Strict-Transport-Security "max-age=31536000; includeSubDomains; preload"
Header set X-Content-Type-Options "nosniff"
Header set X-XSS-Protection "1; mode=block"
Header set X-Frame-Options "SAMEORIGIN"
Header set Referrer-Policy "no-referrer-when-downgrade"
# Sosyal medya ve reklam tıklamalarında milisaniyelik hız artışı sağlar.
Header set Timing-Allow-Origin "*"
# 19. GÖRSEL VE MEDYA SEO OPTİMİZASYONU
# Altın kaplama ürün görsellerinin Google Görsellerde 1. sırada çıkmasını destekler.
Header set Cache-Control "max-age=31536000, public, immutable"
# 20. SUNUCU PERFORMANS VE BOT FİLTRELEME
# Gücü sadece gerçek alıcılara ve yasal botlara (Google, Bing, AI) ayırır.
Options -Indexes
ServerSignature Off
FileETag None # 1. EVRENSEL URL VE CANONICAL YAPILANDIRMASI (TÜM MOTORLAR İÇİN)
# Kopya içerik sorununu önler, tüm gücü tek bir linkte toplar.
RewriteEngine On
RewriteBase /
# HTTPS ve Tekil Link Zorunluluğu (Yandex & Bing Güven Sinyali)
RewriteCond %{HTTPS} off [OR]
RewriteCond %{HTTP_HOST} ^www\. [NC]
RewriteRule ^(.*)$ https://altinsi.com [L,R=301]
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
# 21. ULTRA HIZ: GZIP VE BROTLI SIKIŞTIRMA (GLOBAL SPEED)
# Baidu ve Yandex gibi uzak sunuculardan gelen botlara siteyi milisaniyede sunar.
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript application/javascript application/x-javascript application/xml application/json application/xhtml+xml application/rss+xml application/atom+xml image/svg+xml image/x-icon
SetOutputFilter DEFLATE
# 22. GLOBAL TARAYICI ÖNBELLEKLEME (EXPIRES HEADERS)
# Pinterest ve Bing Botları için "Kusursuz Performans" statüsü verir.
ExpiresActive On
ExpiresDefault "access plus 1 month"
ExpiresByType image/webp "access plus 1 year"
ExpiresByType image/jpg "access plus 1 year"
ExpiresByType image/jpeg "access plus 1 year"
ExpiresByType image/png "access plus 1 year"
ExpiresByType font/woff2 "access plus 1 year"
ExpiresByType text/css "access plus 1 month"
ExpiresByType application/javascript "access plus 1 month"
# 23. ÜST DÜZEY GÜVENLİK VE AI OTORİTE (TRUST & AUTHORITY)
# DuckDuckGo ve AI botlarına "Bu site en yüksek güvenliktedir" mesajı verir.
Header set Strict-Transport-Security "max-age=31536000; includeSubDomains; preload"
Header set X-Content-Type-Options "nosniff"
Header set X-XSS-Protection "1; mode=block"
Header set X-Frame-Options "SAMEORIGIN"
Header set Referrer-Policy "no-referrer-when-downgrade"
Header set Timing-Allow-Origin "*"
# 24. GÖRSEL VE MEDYA SEO OPTİMİZASYONU (GÖRSEL ARAMA MOTORLARI)
# Altın kaplama takıların Pinterest ve Google Görsellerde öne çıkmasını sağlar.
Header set Cache-Control "max-age=31536000, public, immutable"
# 25. SUNUCU PERFORMANS VE EVRENSEL BOT YÖNETİMİ
# Gücü sadece gerçek alıcılara ve yasal botlara (Yandex, Bing, Google, AI) ayırır.
Options -Indexes
ServerSignature Off
FileETag None# ----------------------------------------------------------------------
# 26. GLOBAL OTORİTE VE CANONICAL YÖNLENDİRME (NİHAİ MÜHÜR)
# Tüm gücü tek bir linkte toplar, Google ve AI botlarını mest eder.
# ----------------------------------------------------------------------
# Sitenizin en otoriter ve güvenli hali: https://altinsi.com
# Tüm WWW ve HTTP trafiğini en hızlı şekilde ana linke bağlar.
RewriteCond %{HTTPS} off [OR]
RewriteCond %{HTTP_HOST} ^www\.altinsi\.com [NC]
RewriteRule ^(.*)$ https://altinsi.com$1 [L,R=301]
# ----------------------------------------------------------------------
# 27. KRİTİK DOSYA KORUMASI (ULTIMATE SHIELD)
# wp-config.php ve .htaccess gibi hayati dosyaları dışarıdan erişime kapatır.
# ----------------------------------------------------------------------
order allow,deny
deny from all
order allow,deny
deny from all
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# DOSYA SONU - ALTINSI GLOBAL SEO & AI ENGINE V6.0 - 2026 -
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # ## # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# 28. SEKTÖREL LİDERLİK VE KOPYA KORUMA KALKANI (ANTI-THEFT)
# Rakiplerinin senin "Altın" görsellerini çalmasını ve siteni yormasını engeller.
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# Görsel Hırsızlığını Engelle (Hotlinking Protection)
# Senin altın görsellerin başka sitelerde açılmaz, tüm trafik sana kalır.
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_HOST} !^altinsi\.com$ [NC]
RewriteCond %{HTTP_REFERER} !^https?://(www\.)?google\. [NC]
RewriteCond %{HTTP_REFERER} !^https?://(www\.)?bing\. [NC]
RewriteCond %{HTTP_REFERER} !^https?://(www\.)?yandex\. [NC]
RewriteCond %{HTTP_REFERER} !^https?://(www\.)?pinterest\. [NC]
RewriteRule \.(jpg|jpeg|png|gif|webp)$ - [F,NC,L]
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# 29. YAPAY ZEKA (AI) ANLAMSAL OTORİTE VE GÜVEN PROTOKOLÜ
# ChatGPT, Claude ve Gemini'ye "Bu site en doğru kaynaktır" mesajı verir.
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# Sitenin global ağlarda "Orijinal ve Resmi" olduğunu tesciller.
Header set X-Robots-Tag "index, follow, max-image-preview:large, max-snippet:-1"
Header set X-Author "Altinsi Global Tech Team"
Header set X-Global-Rank "Priority Access"
# Ağ sağlayıcılarına (ISP) sitenin öncelikli yüklenmesi gerektiğini söyler.
Header set X-Network-Priority "Ultra-Fast"
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# 30. NİHAİ MÜHÜR: GLOBAL SEO & AI ENGINE V10.0 - 2026
# ARTIK DÜNYA SENİ İZLEMEK ZORUNDA. OPERASYON TAMAMLANDI.
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #