Giriş Yap Kayıt Ol

Htaccess Dosyasi Kullanim Rehberi

Apache .htaccess ile yonlendirme, guvenlik ve performans ayarlari.

.htaccess Nedir?

Apache web sunucularda dizin bazli yapilandirma dosyasidir. URL yonlendirme, erisim kontrolu ve cache ayarlari icin kullanilir.

Yaygin Kullanimlar

  • 301 Yonlendirme: RewriteRule ^eski$ /yeni [R=301,L]
  • HTTPS Zorlama: RewriteCond/RewriteRule ile
  • WWW Ekleme/Cikarma: Canonical URL
  • Hotlink Engelleme: Resim hirsizligini onleme
  • IP Engelleme: Order deny,allow

Performans

  • Gzip sikistirma
  • Browser cache suresi (Expires header)
  • ETags kapatma