Ornafura/Kazoo/master/.htaccess - Htaccess File

Ornafura/Kazoo/master/.htaccess

Options +FollowSymlinks
Options -Multiviews

# PHP extension adding
AddType x-mapp-php5 .kazoo
AddType application/x-httpd-php .kazoo

RewriteEngine On
# RewriteBase /

RewriteRule ^(.+).rss$ $1.xml [L]

# Output compression
<IfModule filter_module.c>
  <IfModule version.c>
    <IfVersion >= 2.4>
      FilterDeclare  COMPRESS
      FilterProvider COMPRESS DEFLATE "%{CONTENT_TYPE} =~ m#^text/(html|css|plain|xml|x-component)#i"
      FilterProvider COMPRESS DEFLATE "%{CONTENT_TYPE} =~ m#^application/(javascript|json|xml|xhtml+xml|rss+xml|atom+xml|vnd.ms-fontobject|x-font-ttf)#i"
      FilterProvider COMPRESS DEFLATE "%{CONTENT_TYPE} =~ m#^image/(svg+xml|x-icon)#i"
      FilterProvider COMPRESS DEFLATE "%{CONTENT_TYPE} = 'font/opentype'"
      FilterChain    COMPRESS
      FilterProtocol COMPRESS DEFLATE change=yes;byteranges=no
    </IfVersion>
    <IfVersion < 2.4>
      FilterDeclare COMPRESS
      FilterProvider COMPRESS DEFLATE resp=Content-Type $text/html
      FilterProvider COMPRESS DEFLATE resp=Content-Type $text/css
      FilterProvider COMPRESS DEFLATE resp=Content-Type $text/plain
      FilterProvider COMPRESS DEFLATE resp=Content-Type $text/xml
      FilterProvider COMPRESS DEFLATE resp=Content-Type $text/x-component
      FilterProvider COMPRESS DEFLATE resp=Content-Type $application/javascript
      FilterProvider COMPRESS DEFLATE resp=Content-Type $application/json
      FilterProvider COMPRESS DEFLATE resp=Content-Type $application/xml
      FilterProvider COMPRESS DEFLATE resp=Content-Type $application/xhtml+xml
      FilterProvider COMPRESS DEFLATE resp=Content-Type $application/rss+xml
      FilterProvider COMPRESS DEFLATE resp=Content-Type $application/atom+xml
      FilterProvider COMPRESS DEFLATE resp=Content-Type $application/vnd.ms-fontobject
      FilterProvider COMPRESS DEFLATE resp=Content-Type $image/svg+xml
      FilterProvider COMPRESS DEFLATE resp=Content-Type $image/x-icon
      FilterProvider COMPRESS DEFLATE resp=Content-Type $application/x-font-ttf
      FilterProvider COMPRESS DEFLATE resp=Content-Type $font/opentype
      FilterChain COMPRESS
      FilterProtocol COMPRESS DEFLATE change=yes;byteranges=no
    </IfVersion>
  </IfModule>
  <IfModule !version.c>
    FilterDeclare COMPRESS
    FilterProvider COMPRESS DEFLATE resp=Content-Type $text/html
    FilterProvider COMPRESS DEFLATE resp=Content-Type $text/css
    FilterProvider COMPRESS DEFLATE resp=Content-Type $text/plain
    FilterProvider COMPRESS DEFLATE resp=Content-Type $text/xml
    FilterProvider COMPRESS DEFLATE resp=Content-Type $text/x-component
    FilterProvider COMPRESS DEFLATE resp=Content-Type $application/javascript
    FilterProvider COMPRESS DEFLATE resp=Content-Type $application/json
    FilterProvider COMPRESS DEFLATE resp=Content-Type $application/xml
    FilterProvider COMPRESS DEFLATE resp=Content-Type $application/xhtml+xml
    FilterProvider COMPRESS DEFLATE resp=Content-Type $application/rss+xml
    FilterProvider COMPRESS DEFLATE resp=Content-Type $application/atom+xml
    FilterProvider COMPRESS DEFLATE resp=Content-Type $application/vnd.ms-fontobject
    FilterProvider COMPRESS DEFLATE resp=Content-Type $image/svg+xml
    FilterProvider COMPRESS DEFLATE resp=Content-Type $image/x-icon
    FilterProvider COMPRESS DEFLATE resp=Content-Type $application/x-font-ttf
    FilterProvider COMPRESS DEFLATE resp=Content-Type $font/opentype
    FilterChain COMPRESS
    FilterProtocol COMPRESS DEFLATE change=yes;byteranges=no
  </IfModule>
</IfModule>

# Don't display any folder
Options -Indexes

# Server signature disabling
ServerSignature Off

# HTTP errors
ErrorDocument 400 /400/
ErrorDocument 401 /401/
ErrorDocument 402 /402/
ErrorDocument 403 /403/
ErrorDocument 404 /404/
ErrorDocument 405 /405/
ErrorDocument 500 /500/
ErrorDocument 501 /501/
ErrorDocument 502 /502/
ErrorDocument 503 /503/

# START KAZOO
RewriteCond %{HTTP:Accept-Language} ^fr [NC]
RewriteRule ^$ fr/site/index/ [QSA,NC,L]

RewriteRule ^$ en/site/index/ [QSA,NC,L]
# STOP KAZOO

RewriteCond %{REQUEST_FILENAME} !KAfail.kazoo
RewriteCond %{REQUEST_FILENAME} !KAptor.kazoo
RewriteRule ^([0-9]{3})/$ public/web/KAfail.kazoo?e=$2 [QSA,NC,L]

RewriteCond %{REQUEST_FILENAME} !KAfail.kazoo
RewriteCond %{REQUEST_FILENAME} !KAptor.kazoo
RewriteRule ^([^/0-9]{2})/([^/0-9]+)/([^/]+)/([^/]+)/$ public/web/KAptor.kazoo?zone=$2&cible=$3&vars=$4&lg=$1 [QSA,NC,L]

RewriteCond %{REQUEST_FILENAME} !KAfail.kazoo
RewriteCond %{REQUEST_FILENAME} !KAptor.kazoo
RewriteRule ^([^/0-9]{2})/([^/0-9]+)/([^/]+)(/?)$ public/web/KAptor.kazoo?zone=$2&cible=$3&lg=$1&vars= [QSA,NC,L]

RewriteCond %{REQUEST_FILENAME} !KAfail.kazoo
RewriteCond %{REQUEST_FILENAME} !KAptor.kazoo
RewriteRule ^([^/0-9]{2})/([^/0-9]+)(/?)$ public/web/KAptor.kazoo?zone=$2&cible=index&lg=$1&vars= [QSA,NC,L]

On Github License

Files

Download PDF of Htaccess file
CONTENT_TYPE, DEFLATE, REQUEST_FILENAME

Comments

Apache