AddOutputFilterByType DEFLATE text/html text/plain text/css application/json AddOutputFilterByType DEFLATE application/javascript AddOutputFilterByType DEFLATE text/xml application/xml text/x-component AddOutputFilterByType DEFLATE application/xhtml+xml application/rss+xml application/atom+xml AddOutputFilterByType DEFLATE image/x-icon image/svg+xml application/vnd.ms-fontobject application/x-font-ttf font/opentype RewriteEngine On RewriteBase / # Send would-be 404 requests to Craft RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_URI} !^/(favicon\.ico|apple-touch-icon.*\.png)$ [NC] RewriteRule (.+) index.php?p=$1 [QSA,L] # Futile attempt to enforce HTTP: RewriteCond %{HTTP_HOST} mysite\.com [NC] RewriteCond %{REQUEST_URI} ^/admin/ [NC] RewriteCond %{HTTPS} =on RewriteRule .* http://%{HTTP_HOST}%{REQUEST_URI} [NC,R=301,L] RewriteCond %{SERVER_PORT} ^443$ RewriteRule (.*) http://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]