-
Notifications
You must be signed in to change notification settings - Fork 0
/
.htaccess
42 lines (34 loc) · 1.23 KB
/
.htaccess
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
Options -MultiViews
# Force the latest IE version, in various cases when it may fall back to IE7 mode
# github.com/rails/rails/commit/123eb25#commitcomment-118920
# 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
</IfModule>
</IfModule>
# video
AddType video/ogg ogg ogv
AddType video/mp4 mp4
# Proper svg serving. Required for svg webfonts on iPad
# twitter.com/FontSquirrel/status/14855840545
AddType image/svg+xml svg svgz
# webfonts
AddType application/vnd.ms-fontobject 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