Solutions
Industries
Results
Pricing
Resources
90 Day Growth Plan
Dashboard
Free SEO Tool
.htaccess Generator
Generate safe redirect and security rules for Apache servers.
Redirect + security
Force HTTPS
WWW preference
No change
Force www
Force non-www
Trailing slash
No change
Add slash
Remove slash
Enable Gzip compression
Add cache headers
Block xmlrpc.php
Block wp-admin
.htaccess output
RewriteEngine On RewriteCond %{HTTPS} off RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] <IfModule mod_deflate.c> AddOutputFilterByType DEFLATE text/plain text/html text/css text/javascript application/javascript application/json </IfModule> <IfModule mod_expires.c> ExpiresActive On ExpiresByType image/jpg "access plus 1 year" ExpiresByType image/jpeg "access plus 1 year" ExpiresByType image/png "access plus 1 year" ExpiresByType text/css "access plus 1 month" ExpiresByType application/javascript "access plus 1 month" </IfModule>
Copy snippet
Client-side only
No paid APIs
Apache ready