AlexeyYakovlev/factory-polls/master/.htaccess - Htaccess File

AlexeyYakovlev/factory-polls/master/.htaccess

SetEnv KOHANA_ENV development
#SetEnv KOHANA_ENV production
#SetEnv KOHANA_ENV testing
#SetEnv KOHANA_ENV staging
# Turn on URL rewriting
RewriteEngine On

# Installation directory
RewriteBase /factory-polls/

# Protect hidden files from being viewed
<Files .*>
  Order Deny,Allow
  Deny From All
</Files>
RewriteRule ^application/media/(.*)$ application/media/$1 [L]
# Protect application and system files from being viewed
RewriteRule ^(?:application|modules|system)b.* index.php/$0 [L]

# Allow any files or directories that exist to be displayed directly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

# Rewrite all other URLs to index.php/URL
RewriteRule .* index.php/$0 [PT]

<IfModule mod_setenvif.c>
  <IfModule mod_headers.c>
    BrowserMatch MSIE ie
    Header set X-UA-Compatible "IE=Edge,chrome=1" env=ie

    <FilesMatch ".(appcache|crx|css|eot|gif|htc|ico|jpe?g|js|m4a|m4v|manifest|mp4|oex|oga|ogg|ogv|otf|pdf|png|safariextz|svg|svgz|ttf|vcf|webm|webp|woff|xml|xpi)$">
        Header unset X-UA-Compatible
    </FilesMatch>
  </IfModule>
</IfModule>

On Github License

Files

Download PDF of Htaccess file
ENV, REQUEST_FILENAME

Comments

Apache