Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
executable file 42 lines (34 sloc) 1.13 KB
# fix ETags
FileETag MTime Size
# caching
<IfModule mod_expires.c>
ExpiresActive On
<FilesMatch "\.(ico|gif|jpe?g|png|svg|svgz|js|css|swf|ttf|otf|woff|eot|swf|xml|html)$">
ExpiresDefault "access plus 1 month"
# gzip
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/html text/plain text/xml application/xml text/javascript text/css application/x-javascript application/xhtml+xml application/javascript
# these browsers do not support deflate
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4.0[678] no-gzip
BrowserMatch bMSIE !no-gzip !gzip-only-text/html
SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown downgrade-1.0 force
# options
Options -Indexes
Options +FollowSymlinks
# nice urls
RewriteEngine On
RewriteBase /
# only one base url
#RewriteCond %{HTTP_HOST} !^url\.ld [NC]
#RewriteCond %{HTTP_HOST} !.*\.dev [NC]
#RewriteCond %{HTTP_HOST} !.*\ [NC]
#RewriteRule ^(.*)$ http://url.ld/$1 [R=301,L]
# handle urls
RewriteCond %{REQUEST_URI} !^$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [NC,L]
Something went wrong with that request. Please try again.