OpenMods/OpenData-web/master/web/.htaccess
<IfModule mod_rewrite.c>
Options -MultiViews
RewriteEngine On
#RewriteBase /path/to/app
RewriteRule ^stats/packets/timeline/(.+).(.*)$ packet_stats.php?k=$1&t=$2 [L]
RewriteRule ^stats/packets/timeline/(.+)$ packet_stats.php?k=$1 [L]
RewriteRule ^stats/packets/(.+).(.*)$ packet_stats.php?p=$1&t=$2 [L]
RewriteRule ^stats/packets/(.+)$ packet_stats.php?p=$1 [L]
RewriteRule ^stats/counters/dimension/(.+).(.*)$ counter_stats.php?d=$1&t=$2 [L]
RewriteRule ^stats/counters/(.+)/(.+).(.+).(.*)$ counter_stats.php?p=$1&k=$2&s=$3&t=$4 [L]
RewriteRule ^stats/counters/(.+)/(.+).(.*)$ counter_stats.php?p=$1&k=$2&t=$3 [L]
RewriteRule ^stats/files/(.+).(.+)$ file_stats.php?t=$2&f=$1 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [QSA,L]
</IfModule>
<IfModule mod_gzip.c>
mod_gzip_on Yes
mod_gzip_dechunk Yes
mod_gzip_item_include file .(html|txt|css|js)$
mod_gzip_item_include mime ^text/.*
mod_gzip_item_include mime ^application/css.*
mod_gzip_item_include mime ^application/javascript.*
mod_gzip_item_exclude mime ^image/.*
mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
</IfModule>
<Ifmodule mod_expires.c>
<Filesmatch ".(jpg|jpeg|png|gif|js|css|swf|ico|woff|mp3)$">
ExpiresActive on
ExpiresDefault "access plus 1 month"
</Filesmatch>
</Ifmodule>
On Github License
Files