# Generated .htaccess
# Redirect HTTP to HTTPS
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
# Redirect non-www to www
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ https://www.%{HTTP_HOST}/$1 [R=301,L]
# Enable Gzip
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/html text/css application/javascript
</IfModule>
# Browser Caching
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpg "access plus 1 year"
ExpiresByType image/png "access plus 1 year"
ExpiresByType text/css "access plus 1 month"
</IfModule>
598 chars
Similar Tools
Color ConverterUUID GeneratorJSON ValidatorJSON MinifyJSON PrettyHash GeneratorRegex TesterASCII TableJWT DecoderUnix PermissionsCron ParserIP LookupUser Agent ParserXML FormatterSQL FormatterCSS MinifyCSS BeautifyJS MinifyJS BeautifyMeta Tags GeneratorOpen Graph GeneratorColor PickerColor Palette GeneratorGradient GeneratorBox Shadow GeneratorBorder Radius GeneratorFlexbox GeneratorGrid GeneratorText Shadow GeneratorCSS Units ConverterHTML EntitiesJSON EscapeJSON UnescapeURL ParserQuery String ParserIP Subnet CalculatorJSON Path TesterHex Color MixerColor Shades GeneratorColor Contrast CheckerFont Pairing HelperSVG to CSSCSS Cursor ViewerColor Name FinderCSS Animation GeneratorCSS Filter GeneratorCSS Clip Path GeneratorRobots.txt GeneratorSitemap GeneratorJSON to TypeScriptFile ChecksumCIDR CalculatorCurl ConverterJSON DiffJWT GeneratorKeycode InfoMIME Type SearchSVG OptimizerCSS Triangle GeneratorCSS GlassmorphismHTML Table GeneratorBrowser InformationRSA Key GeneratorCSR GeneratorHMAC GeneratorLaTeX Table GeneratorChmod CalculatorSQL to Mermaid
Need a specific tool?
Let us know what you need and we build it for you.