kalamun/orichalcum/master/.htaccess - Htaccess File

kalamun/orichalcum/master/.htaccess

# Bettino CMS #
AddDefaultCharset UTF-8

# deny directory listing #
Options -Indexes

# rewrite engine #
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase {VAR_BASEDIR}

RewriteRule ^arch/private/(.*) / [L]
RewriteRule ^(arch/.*) $1 [L,QSA]
RewriteRule ^(template/.*) $1 [L,QSA]
RewriteRule ^(img/.*) $1 [L,QSA]
RewriteRule ^(admin/.*) $1 [L,QSA]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(..)/(.*)? index.php?lang=$1&url=$2 [L,QSA]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*) shortURL.php?url=$1 [L,QSA]
</IfModule>

# Gzip compression #
<ifmodule mod_deflate.c>
AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css application/x-javascript application/javascript text/javascript
</ifmodule>

# expire headers #
<ifModule mod_expires.c>
ExpiresActive On
ExpiresDefault "access plus 5 seconds"
ExpiresByType image/x-icon "access plus 2592000 seconds"
ExpiresByType image/jpeg "access plus 2592000 seconds"
ExpiresByType image/png "access plus 2592000 seconds"
ExpiresByType image/gif "access plus 2592000 seconds"
ExpiresByType application/x-shockwave-flash "access plus 2592000 seconds"
ExpiresByType text/css "access plus 604800 seconds"
ExpiresByType text/javascript "access plus 216000 seconds"
ExpiresByType application/javascript "access plus 216000 seconds"
ExpiresByType application/x-javascript "access plus 216000 seconds"
ExpiresByType text/html "access plus 600 seconds"
ExpiresByType application/xhtml+xml "access plus 600 seconds"
</ifModule>

On Github License

Files

Download PDF of Htaccess file
DEFLATE, REQUEST_FILENAME

Comments

Apache