|

.htaccess Dosyası Oluşturucu

Ağ & Webmaster

HTTPS yönlendirmesi, www ayarları, 404 hata sayfası, IP engelleme ve Gzip sıkıştırma kuralları üretin.

Sunucu Kuralları & Seçenekler

Üretilen .htaccess Kodu
# ToolsApp .htaccess Yapılandırma Dosyası
RewriteEngine On

# 1. HTTPS Yönlendirmesi
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

# 2. www Ön Eki Zorla
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule ^(.*)$ https://www.%{HTTP_HOST}/$1 [R=301,L]

# 3. Dizin Listelemeyi Kapat (Güvenlik)
Options -Indexes

# 4. Özel 404 Hata Sayfası
ErrorDocument 404 /404.html

# 6. Gzip / Brotli Sıkıştırma (Performans)
<IfModule mod_deflate.c>
  AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css
  AddOutputFilterByType DEFLATE application/javascript application/json application/xml
  AddOutputFilterByType DEFLATE font/ttf font/otf font/x-woff image/svg+xml
</IfModule>

.htaccess Dosyası Oluşturucu Nasıl Kullanılır?

1

Kuralları Seçin

HTTPS zorlama, www tercihi ve Gzip seçeneklerini işaretleyin.

2

İndirin

.htaccess dosyasını tek tıkla kaydedin.

Gizlilik Güvencesi:Bu araçtaki tüm hesaplamalar ve dönüştürme işlemleri %100 istemci taraflı (JavaScript) olarak tarayıcınızda gerçekleştirilir. Verileriniz hiçbir sunucuya yüklenmez veya kaydedilmez.