Created
November 2, 2012 00:54
-
-
Save NapoleonWils0n/3997959 to your computer and use it in GitHub Desktop.
apache: gzip htaccess
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<VirtualHost *:80> | |
ServerAdmin [email protected] | |
ServerName example.co.uk | |
ServerAlias www.example.co.uk | |
DirectoryIndex index.php | |
DocumentRoot /var/www/wordpress/html/ | |
<Directory /var/www/wordpress/html/> | |
Options -Indexes | |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteBase / | |
RewriteRule ^index\.php$ - [L] | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteRule . /index.php [L] | |
</IfModule> | |
<ifmodule mod_deflate.c> | |
<ifmodule mod_mime.c> | |
Addtype font/opentype .otf | |
Addtype font/eot .eot | |
Addtype font/truetype .ttf | |
</ifmodule> | |
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css application/x-javascript application/javascript text/text font/opentype font/truetype font/eot image/svg+xml | |
</ifmodule> | |
<IfModule mod_expires.c> | |
ExpiresActive On | |
ExpiresByType image/gif "access plus 1 months" | |
ExpiresByType image/jpg "access plus 1 months" | |
ExpiresByType image/jpeg "access plus 1 months" | |
ExpiresByType image/png "access plus 1 months" | |
ExpiresByType image/vnd.microsoft.icon "access plus 1 months" | |
ExpiresByType image/x-icon "access plus 1 months" | |
ExpiresByType image/ico "access plus 1 months" | |
ExpiresDefault "access plus 1 weeks" | |
</IfModule> | |
FileETag none | |
</Directory> | |
</VirtualHost> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment