Add .htaccess file to repository.
This commit is contained in:
parent
cf2df2920f
commit
4ab3f8ba08
1 changed files with 18 additions and 0 deletions
18
public_html/.htaccess
Normal file
18
public_html/.htaccess
Normal file
|
@ -0,0 +1,18 @@
|
|||
RewriteEngine On
|
||||
RewriteCond %{HTTP_HOST} ^whoisandrew.com
|
||||
RewriteRule (.*) http://www.whoisandrew.com/$1 [R=301,L]
|
||||
|
||||
<FilesMatch "\.(ico|pdf|flv|jpg|jpeg|png|gif|js|css|swf)$">
|
||||
Header set Cache-Control "max-age=31556926, public"
|
||||
</FilesMatch>
|
||||
|
||||
<IfModule mod_gzip.c>
|
||||
mod_gzip_on Yes
|
||||
mod_gzip_dechunk Yes
|
||||
mod_gzip_item_include file \.(html?|xml|txt|css|js)$
|
||||
mod_gzip_item_include handler ^cgi-script$
|
||||
mod_gzip_item_include mime ^text/.*
|
||||
mod_gzip_item_include mime ^application/x-javascript.*
|
||||
mod_gzip_item_exclude mime ^image/.*
|
||||
mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
|
||||
</IfModule>
|
Loading…
Reference in a new issue