WebTools
所有工具
🇺🇸
EN
🇯🇵
JA
🇨🇳
ZH
🇰🇷
KO
首页
/
工具列表
/
.htaccess 生成器
.htaccess 生成器
生成Apache .htaccess规则,用于重定向、认证等。
Force HTTPS
Force www
Remove www
Enable Gzip
Browser Caching
Index file
404 page
.htaccess output
Options -Indexes DirectoryIndex index.php ErrorDocument 404 /404.html # Force HTTPS RewriteEngine On RewriteCond %{HTTPS} off RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] # Remove www RewriteEngine On RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC] RewriteRule ^ https://%1%{REQUEST_URI} [L,R=301] # Enable Gzip <IfModule mod_deflate.c> AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript application/javascript application/json </IfModule> # Browser Caching <IfModule mod_expires.c> ExpiresActive On ExpiresByType image/jpg "access plus 1 year" ExpiresByType image/jpeg "access plus 1 year" ExpiresByType image/gif "access plus 1 year" ExpiresByType image/png "access plus 1 year" ExpiresByType image/webp "access plus 1 year" ExpiresByType text/css "access plus 1 month" ExpiresByType application/javascript "access plus 1 month" </IfModule>
Copy .htaccess
相关工具
Nginx 配置生成器
tsconfig.json 生成器
.eslintrc 生成器
UUID 生成器
关于此工具
生成Apache .htaccess规则,用于重定向、认证等。