Generate Apache .htaccess rules. Configure options and generate output instantly.
# Force HTTPS
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
# Gzip Compression
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/html text/css text/plain
AddOutputFilterByType DEFLATE text/xml application/xml
AddOutputFilterByType DEFLATE application/javascript application/json
</IfModule>
# Security Headers
Header set X-Content-Type-Options "nosniff"
Header set X-Frame-Options "SAMEORIGIN"
Header set X-XSS-Protection "1; mode=block"
Header set Referrer-Policy "strict-origin-when-cross-origin"Set your desired options.
Output is generated instantly.
Copy the code or download the file.
Yes, completely free with no limitations.
Yes, all options are fully customizable.
Everything runs in your browser. No data is sent to any server.