HTTPS بدون درز و تغییر مسیرهای متعارف
ترافیک HTTPS را اعمال کنید و بین عادی سازی دامنه WWW و غیر WWW بدون زحمت با استفاده از قوانین mod_rewrite اثبات شده یکی را انتخاب کنید.
ژنراتور Htaccess
فایل های پیکربندی سفارشی Apache .htaccess را با تغییر مسیر HTTPS، قوانین WWW/non-WWW، کش مرورگر، مسدود کردن IP و گزینه های امنیتی در زمان واقعی ایجاد کنید.
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.
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.
# ================================================================
# 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>سرعت سرور وب Apache را بهینه کنید، HTTPS ایمن و دامنه های متعارف را اعمال کنید، از کش مرورگر استفاده کنید، و از دایرکتوری های حساس با امنیت 100% مبتنی بر مرورگر محافظت کنید.
ترافیک HTTPS را اعمال کنید و بین عادی سازی دامنه WWW و غیر WWW بدون زحمت با استفاده از قوانین mod_rewrite اثبات شده یکی را انتخاب کنید.
هدر mod_expires و mod_deflate فشرده سازی gzip را فعال کنید تا سرعت بارگیری دارایی را به شدت افزایش داده و Google Core Web Vitals را بهبود بخشد.
فهرست های دایرکتوری (فهرست) را غیرفعال کنید، آدرس های IP ناخواسته را محدود کنید، و صفحات خطای سفارشی (404، 500) را با انتقال سرور صفر پیکربندی کنید.
به یک تجدید ذهنی 2 دقیقه ای نیاز دارید؟ مستقیماً در مرورگر خود وارد یک بازی پازل کلاسیک شوید.