Kortalh/phptracker/master/.htaccess
# Set cache expiration times
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpg "access 1 year"
ExpiresByType image/jpeg "access 1 year"
ExpiresByType image/gif "access 1 year"
ExpiresByType image/png "access 1 year"
ExpiresByType text/css "access 1 month"
ExpiresByType text/html "access 1 month"
ExpiresByType application/pdf "access 1 month"
ExpiresByType text/x-javascript "access 1 month"
ExpiresByType application/x-shockwave-flash "access 1 month"
ExpiresByType image/x-icon "access 1 year"
ExpiresDefault "access 1 month"
</IfModule>
# Deny access to config file
<Files config.php>
order allow,deny
deny from all
</Files>
# Add Accept-Encoding for Compression
<IfModule mod_headers.c>
<FilesMatch ".(js|css|xml|gz)$">
Header append Vary: Accept-Encoding
</FilesMatch>
</IfModule>
# Enable rewrite engine
RewriteEngine On
# Only perform the rewrite if the file is not real
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# Perform the rule
RewriteRule ^([^/]+)/?([^/]+)?/?([^/]+)?/? index.php?controller=$1&action=$2¶m=$3 [L,QSA]
On Github License
Files