PHP Classes

File: web/.htaccess

Recommend this page to a friend!
  Classes of Rafael Espinosa   Silex Enhanced   web/.htaccess   Download  
File: web/.htaccess
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Silex Enhanced
Silex with custom services providers.
Author: By
Last change: Initialized repository with application skeleton and demo files.
Date: 9 years ago
Size: 1,483 bytes
 

Contents

Class file image Download
#Valid values for ENV: DEV|PROD|TEST|DEBUG SetEnv ENVIRONMENT PROD <IfModule mod_rewrite.c> Options -MultiViews RewriteEngine On #RewriteBase /path/to/app RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^ index.php [QSA,L] </IfModule> <IfModule !mod_rewrite.c> <IfModule mod_alias.c> # When mod_rewrite is not available, we instruct a temporary redirect of # the start page to the front controller explicitly so that the website # and the generated links can still be used. RedirectMatch 302 ^/$ /index.php/ # RedirectTemp cannot be used instead </IfModule> </IfModule> <IfModule mod_deflate.c> 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 <Files *.css> SetOutputFilter DEFLATE </Files> <Files *.js> SetOutputFilter DEFLATE </Files> <Files *.png> SetOutputFilter DEFLATE </Files> <Files *.gif> SetOutputFilter DEFLATE </Files> <Files *.jpg> SetOutputFilter DEFLATE </Files> </IfModule>