defvayne23/Groundwork/master/.htaccess - Htaccess File


Options -MultiViews 

# Force the latest IE version, in various cases when it may fall back to IE7 mode
# Use ChromeFrame if it's installed for a better experience for the poor IE folk
<IfModule mod_setenvif.c>
  <IfModule mod_headers.c>
    BrowserMatch MSIE ie
    Header set X-UA-Compatible "IE=Edge" env=ie
    BrowserMatch chromeframe gcf
    Header append X-UA-Compatible "chrome=1" env=gcf

# video
AddType video/ogg ogg ogv
AddType video/mp4 mp4

# Proper svg serving. Required for svg webfonts on iPad
AddType image/svg+xml                 svg svgz 

# webfonts
AddType application/ eot
AddType font/ttf                      ttf
AddType font/otf                      otf
AddType font/x-woff                   woff

RewriteEngine On
RewriteBase /

# Remove the www from domain
RewriteCond %{HTTP_HOST} ^www.(.+)$ [NC]
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]

# If request is for the app folder, pass it to the application
RewriteCond %{REQUEST_FILENAME} /app/(.*)$
RewriteRule ^.*$ index.php

# If file does not exist, pass it to the application
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^.*$ index.php

On Github License


Download PDF of Htaccess file