Htaccess Oluşturucu

← Kontrol Paneli'e geri dönYardımcı programlar

Ücretsiz Çevrimiçi .htaccess Oluşturucu ve Apache Yapılandırma Stüdyosu

HTTPS yeniden yönlendirme, WWW/WWW olmayan kurallar, tarayıcı önbelleğe alma, IP engelleme ve güvenlik seçenekleriyle gerçek zamanlı olarak özelleştirilmiş Apache .htaccess yapılandırma dosyaları oluşturun.

Hızlı Ön Ayarlar:

1. Yönlendirme ve Alan Adı Kuralları

2. Güvenlik ve Erişim Kontrolü

Prevents visitors from seeing directory folder contents when no index file exists.

Mitigates clickjacking, MIME sniffing, and XSS vulnerabilities via mod_headers.

Supports Apache 2.4 (Require not ip) with automatic fallback for Apache 2.2.

4. Performans, Önbelleğe Alma ve Sıkıştırma

Instructs browsers to cache static assets locally to reduce server bandwidth.

Compresses text, HTML, CSS, JS, and JSON data before sending it over the wire.

Routes all non-file/non-directory requests to /index.html for React, Vue, or Next export SPAs.

3. Özel Hata Sayfaları

Oluşturulan .htaccess Çıktısı

.htaccess
# ================================================================
# Apache .htaccess Configuration File
# Generated by Tool 200 (https://tool200.com/htaccess-generator)
# 100% Client-Side Free .htaccess Generator
# ================================================================

# Disable directory file browsing
Options -Indexes

# Rewrite Engine Settings
<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /

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

    # Redirect www to non-www
    RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
    RewriteRule ^(.*)$ https://%1%{REQUEST_URI} [L,R=301]

</IfModule>

# Custom Error Documents
ErrorDocument 404 /404.html
ErrorDocument 500 /500.html

# Essential Security Headers
<IfModule mod_headers.c>
    Header set X-XSS-Protection "1; mode=block"
    Header set X-Frame-Options "SAMEORIGIN"
    Header set X-Content-Type-Options "nosniff"
    Header set Referrer-Policy "strict-origin-when-cross-origin"
</IfModule>

# Leverage Browser Caching (Expires Headers)
<IfModule mod_expires.c>
    ExpiresActive On
    ExpiresDefault "access plus 1 month"

    # HTML document: don't cache or short cache
    ExpiresByType text/html "access plus 0 seconds"

    # CSS and JavaScript: 1 month
    ExpiresByType text/css "access plus 1 month"
    ExpiresByType text/javascript "access plus 1 month"
    ExpiresByType application/javascript "access plus 1 month"

    # Images & Favicons: 1 year
    ExpiresByType image/x-icon "access plus 1 year"
    ExpiresByType image/jpeg "access plus 1 year"
    ExpiresByType image/png "access plus 1 year"
    ExpiresByType image/gif "access plus 1 year"
    ExpiresByType image/webp "access plus 1 year"
    ExpiresByType image/svg+xml "access plus 1 year"

    # Web Fonts: 1 year
    ExpiresByType font/ttf "access plus 1 year"
    ExpiresByType font/woff "access plus 1 year"
    ExpiresByType font/woff2 "access plus 1 year"
</IfModule>

# Gzip / Deflate Compression
<IfModule mod_deflate.c>
    AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css
    AddOutputFilterByType DEFLATE text/javascript application/javascript application/x-javascript
    AddOutputFilterByType DEFLATE application/json application/xml application/rss+xml
    AddOutputFilterByType DEFLATE image/svg+xml font/ttf font/otf
</IfModule>
Tarayıcınızda %100 işlenir. Sunucu iletişimi veya günlük kaydı yok.

Neden Tool 200 Ücretsiz Çevrimiçi .htaccess Oluşturucuyu Kullanmalı?

Apache web sunucusu hızını optimize edin, güvenli HTTPS ve standart etki alanlarını zorunlu kılın, tarayıcı önbelleğe alma özelliğini kullanın ve hassas dizinleri %100 tarayıcı tabanlı güvenlikle koruyun.

Kusursuz HTTPS ve Kanonik Yönlendirmeler

Kanıtlanmış mod_rewrite kurallarını kullanarak HTTPS trafiğini zorlayın ve WWW ile WWW olmayan etki alanı normalleştirmesi arasında zahmetsizce seçim yapın.

Tarayıcı Önbelleği ve Sıkıştırmasından Yararlanın

Varlık yüklemeyi önemli ölçüde hızlandırmak ve Google Önemli Web Verilerini geliştirmek için mod_expires başlıklarını ve mod_deflate gzip sıkıştırmasını etkinleştirin.

Güçlendirilmiş Web Güvenliği ve IP Savunması

Dizin indekslerini (listeleme) devre dışı bırakın, istenmeyen IP adreslerini kısıtlayın ve sıfır sunucu aktarımıyla özel hata sayfalarını (404, 500) yapılandırın.

Hızlı Beyin Tatili

Zihninizi dinlendirmek için hızlı bir mini oyuna ne dersiniz?

2 dakikalık zihinsel tazelenmeye mi ihtiyacınız var? Doğrudan tarayıcınızdan klasik bir bulmaca oyununa geçin.