مولد هتكس

مولد .htaccess مجاني على الإنترنت واستوديو تكوين Apache

قم بإنشاء ملفات تكوين Apache .htaccess مخصصة مع إعادة توجيه HTTPS، وقواعد WWW/non-WWW، والتخزين المؤقت للمتصفح، وحظر IP، وخيارات الأمان في الوقت الفعلي.

الإعدادات المسبقة السريعة:

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 Generator

قم بتحسين سرعة خادم الويب Apache، وفرض أمان HTTPS والمجالات الأساسية، والاستفادة من التخزين المؤقت للمتصفح، وحماية الدلائل الحساسة من خلال الأمان المستند إلى المتصفح بنسبة 100%.

HTTPS السلس وعمليات إعادة التوجيه الأساسية

فرض حركة مرور HTTPS والاختيار بين تطبيع النطاق WWW والمجال غير التابع لـ WWW دون عناء باستخدام قواعد mod_rewrite التي أثبتت جدواها.

الاستفادة من التخزين المؤقت والضغط في المتصفح

قم بتمكين رؤوس mod_expires وضغط mod_deflate gzip لتسريع عملية تحميل الأصول بشكل كبير وتحسين مؤشرات أداء الويب الأساسية في Google.

تعزيز أمن الويب والدفاع عن الملكية الفكرية

قم بتعطيل فهارس الدليل (القائمة)، وتقييد عناوين IP غير المرغوب فيها، وقم بتكوين صفحات الخطأ المخصصة (404، 500) مع عدم إرسال أي خادم.

استراحة سريعة للدماغ

ما رأيك في لعبة صغيرة سريعة لتصفية ذهنك؟

هل تحتاج إلى تحديث عقلي لمدة دقيقتين؟ انتقل إلى لعبة ألغاز كلاسيكية مباشرة في متصفحك.