Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
58 lines (48 sloc) 2.37 KB
redirect 301 /testcases http://code.eligrey.com/tests
redirect 301 /tests/webkit/empty-media-queries.xhtml http://code.eligrey.com/testcases/all/empty-media-queries.xhtml
redirect 301 /l10n.js/demo/index.html http://code.eligrey.com/l10n.js/demo.html
redirect 301 /poc/json-sniffing/ http://code.eligrey.com/poc/json-hijacking/
redirect 301 /document-write.js/ http://code.eligrey.com/async-document-write/
redirect 301 /apng-supported.js/apng-supported.js http://code.eligrey.com/apng-detect/apng-detect.js
redirect 301 /apng-supported.js/demo.html http://code.eligrey.com/apng-detect/demo.html
redirect 301 /apng-supported.js/apng-test.png http://code.eligrey.com/apng-detect/apng-test.png
redirect 301 /http-index-format_automator.zip http://code.eligrey.com/http-index-format_automator/http-index-format_automator.zip
redirect 301 /poc/ http://code.eligrey.com/sec/
redirect 301 /sec/data-uri-same-domain/ http://code.eligrey.com/sec/opera/data-uri-same-domain/
Options +Indexes
AddType image/png .ico
AddType application/font-woff .woff
AddType message/http .http
AddType application/json .json
AddType application/vnd.mozilla.xul+xml .xul
AddType application/http-index-format .index
AddType application/java-archive .zip .jar
AddType multipart/related .mht
AddType text/plain .phps .info
AddType text/cache-manifest .cache-manifest
AddDefaultCharset UTF-8
AddCharset UTF-8 .php .css .js .html .xhtml .json .txt
ErrorDocument 404 /404.php
DirectoryIndex DIRECTORYINDEX.php
DefaultType text/plain
RewriteEngine On
RewriteCond %{HTTP_HOST} !^((code|dev).(eligrey|sephr)\.com|localhost)$ [NC]
RewriteRule (.*) http://code.eligrey.com/$1 [R=301,L]
RedirectMatch 204 ^/favicon\.ico$
RewriteCond %{HTTP:User-Agent} Gecko/
RewriteCond %{REQUEST_FILENAME} -d
RewriteCond %{REQUEST_FILENAME}/DIRECTORYINDEX.php !-f
RewriteRule (.*) /http-index-format_automator.php?dir=$1 [L,QSA]
<ifModule mod_gzip.c>
mod_gzip_on Yes
mod_gzip_dechunk Yes
mod_gzip_item_include file \.(x?html?|txt|css|js|php|json|ttf|otf|eot|ico)$
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>
<FilesMatch "\.(x?html?|txt|css|js|php|json|ttf|otf|eot|woff|ico)$">
Header set Cache-Control "max-age=29030400, public, must-revalidate"
</FilesMatch>