Razican/FoodWeb/master/.htaccess - Htaccess File

Razican/FoodWeb/master/.htaccess

Options -Indexes
Options +FollowSymLinks
SetEnv CI_ENV "development"

DirectoryIndex index.php

<IfModule mod_rewrite.c>
  RewriteEngine On
  RewriteBase /foodweb/

  RewriteCond %{REQUEST_FILENAME} !index.php
  RewriteRule (.*).php$ index.php/$

  RewriteCond %{REQUEST_URI} ^engine.*
  RewriteRule ^(.*)$ /index.php?/$1 [L]

  RewriteCond %{REQUEST_URI} ^application.*
  RewriteRule ^(.*)$ /index.php?/$1 [L]

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

<IfModule !mod_rewrite.c>
  ErrorDocument 404 /index.php
</IfModule>

<ifModule mod_headers.c>

  <FilesMatch ".(jpe?g|png|gif|ico|pdf|xml|svg|css|js|ttf|map)$">
    Header unset Last-Modified
  </FilesMatch>

  Header set X-UA-Compatible "IE=Edge,chrome=1"

  <FilesMatch ".(jpe?g|png|gif|ico|pdf|xml|svg|css|js|ttf|map)$" >
    Header unset X-UA-Compatible
  </FilesMatch>

  <filesMatch ".(jpe?g|png|gif|ico|pdf|xml|svg|css|js|ttf|map)$">
    Header set Cache-Control "max-age=1296000, public"
  </filesMatch>

  <filesMatch ".php$">
    Header set Cache-Control "max-age=86400, public"
  </filesMatch>

  <filesMatch ".(css|js|php|ttf|map)$">
    AddDefaultCharset UTF-8
  </filesMatch>
</ifModule>

<ifModule mod_mime.c>
  AddType font/ttf ttf
</ifModule>

<ifModule mod_deflate.c>
  AddOutputFilterByType DEFLATE text/html
  AddOutputFilterByType DEFLATE text/xml
  AddOutputFilterByType DEFLATE text/css
  AddOutputFilterByType DEFLATE application/javascript
  AddOutputFilterByType DEFLATE application/x-javascript
  AddOutputFilterByType DEFLATE application/xml
  AddOutputFilterByType DEFLATE application/xhtml+xml
  AddOutputFilterByType DEFLATE application/rss+xml
</ifModule>

On Github License

Files

Download PDF of Htaccess file
DEFLATE, ENV, REQUEST_FILENAME, REQUEST_URI

Comments

Apache