页首横幅广告位 · 728×90 / 970×90

.htaccess 生成器

按需勾选常用功能,实时生成 Apache .htaccess 配置文件。

# Generated by ToolVerse · Apache .htaccess

# 强制 HTTPS (Force HTTPS)
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
</IfModule>

# 开启 Gzip 压缩 (Enable gzip compression, mod_deflate)
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript
AddOutputFilterByType DEFLATE application/javascript application/x-javascript application/json
AddOutputFilterByType DEFLATE image/svg+xml application/xml
</IfModule>
内容区广告位 · 响应式