Htaccess जेनरेटर

मुफ़्त ऑनलाइन .htaccess जेनरेटर और अपाचे कॉन्फ़िगरेशन स्टूडियो

वास्तविक समय में HTTPS पुनर्निर्देशन, WWW/गैर-WWW नियम, ब्राउज़र कैशिंग, IP ब्लॉकिंग और सुरक्षा विकल्पों के साथ अनुकूलित Apache .htaccess कॉन्फ़िगरेशन फ़ाइलें जेनरेट करें।

त्वरित प्रीसेट:

1. पुनर्निर्देशन एवं डोमेन नियम

2. सुरक्षा एवं अभिगम नियंत्रण

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. प्रदर्शन, कैशिंग और संपीड़न

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. कस्टम त्रुटि पृष्ठ

जेनरेट किया गया .htaccess आउटपुट

.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>
आपके ब्राउज़र में 100% संसाधित। कोई सर्वर संचार या लॉगिंग नहीं.

टूल 200 मुफ़्त ऑनलाइन .htaccess जेनरेटर का उपयोग क्यों करें

अपाचे वेब सर्वर गति को अनुकूलित करें, सुरक्षित HTTPS और कैनोनिकल डोमेन लागू करें, ब्राउज़र कैशिंग का लाभ उठाएं, और 100% ब्राउज़र-आधारित सुरक्षा के साथ संवेदनशील निर्देशिकाओं की सुरक्षा करें।

निर्बाध HTTPS और कैनोनिकल रीडायरेक्ट

HTTPS ट्रैफ़िक लागू करें और सिद्ध mod_rewrite नियमों का उपयोग करके आसानी से WWW और गैर-WWW डोमेन सामान्यीकरण के बीच चयन करें।

ब्राउज़र कैशिंग और संपीड़न का लाभ उठाएं

एसेट लोडिंग को तेज़ करने और Google कोर वेब वाइटल्स को बढ़ाने के लिए mod_expires हेडर और mod_deflate gzip संपीड़न सक्षम करें।

कठोर वेब सुरक्षा एवं आईपी रक्षा

निर्देशिका अनुक्रमणिका (लिस्टिंग) को अक्षम करें, अवांछित आईपी पते को प्रतिबंधित करें, और शून्य सर्वर ट्रांसमिशन के साथ कस्टम त्रुटि पृष्ठ (404, 500) कॉन्फ़िगर करें।

त्वरित ब्रेन ब्रेक

दिमाग को तरोताजा करने के लिए एक त्वरित मिनी-गेम कैसा रहेगा?

2 मिनट की मानसिक ताजगी की आवश्यकता है? सीधे अपने ब्राउज़र में एक क्लासिक पहेली गेम में कूदें।