Htaccess File

otto-torino/jeff/master/.htaccess

DEFLATE, QUERY_STRING, REQUEST_FILENAME
AddType image/x-icon .ico

FileEtag none

### activate mod_expires
ExpiresActive On
### Expire .gif, .png, .jpg 1 month from when they're accessed
ExpiresByType image/gif A2592000
ExpiresByType image/png A2592000
ExpiresByType image/jpg A2592000
ExpiresByType image/jpeg A2592000
ExpiresByType image/x-icon A2592000
### Expire .js, .css 1 month from when they're accessed
ExpiresByType application/javascript A2592000
ExpiresByType text/css A2592000
ExpiresByType text/javascript A2592000

### Expire everything else 1 day from when it's last modified
### (this uses the Alternative syntax)
ExpiresDefault "modification plus 1 day"
### Apply a Cache-Control header to index.html
<Files index.php>
Header append Cache-Control "public, must-revalidate"
</Files>

# compress text, html, javascript, css, xml:
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript

RewriteEngine on

RewriteBase /jeff.git/

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^(.+[^/])$ $1/  [R]

RewriteRule ^.*favicon.ico$ favicon.ico

RewriteRule ^$ index.php?module=index&method=index&%{QUERY_STRING} [L]
RewriteRule ^home/$ index.php [L]
RewriteRule ^login/$ index.php?login [L]
RewriteRule ^logout/$ index.php?logout [L]
RewriteRule ^noaccess/$ noaccess.php [L]

RewriteRule ^(w+)/new/$ index.php?module=$1&method=manage$1 [L]
RewriteRule ^(w+)/edit/([0-9]+)/$ index.php?module=$1&method=manage$1&id=$2 [L]
RewriteRule ^(w+)/(w+)/$ index.php?module=$1&method=$2 [L]
RewriteRule ^(w+)/(w+)/([^/]+)/$ index.php?module=$1&method=$2&id=$3&%{QUERY_STRING} [L]
RewriteRule ^(w+)/(w+)/([^/]+)/([^/]+)/([^/]+)/$ index.php?module=$1&method=$2&id=$3&$4=$5&%{QUERY_STRING} [L]
RewriteRule ^(w+)/(w+)/([^/]+)/([^/]+)/([^/]+)/([^/]+)/([^/]+)/$ index.php?module=$1&method=$2&id=$3&$4=$5&$6=$7%{QUERY_STRING} [L]
RewriteRule ^(w+)/(w+)/([^/]+)/([^/]+)/$ index.php?module=$1&method=$2&$3=$4 [L]
RewriteRule ^(w+)/(w+)/([^/]+)/([^/]+)/([^/]+)/([^/]+)/$ index.php?module=$1&method=$2&$3=$4&$5=$6 [L]
Exit mobile version