-
Notifications
You must be signed in to change notification settings - Fork 1
/
.htaccess
25 lines (21 loc) · 957 Bytes
/
.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
# enable gzip compressing for the following mime-types
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/shtml
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
</IfModule>
### IMPORTANT ###
### Because we can't change the webroot folder to a subfolder of the document root, we need this rewrite rules ###
RewriteEngine on
# serve existing files in the /public folder as if they were in /
RewriteCond %{REQUEST_URI} !public/
RewriteRule (.*) /public/$1 [L]
# route everything else to /public/index.php
RewriteRule ^ /public/index.php [L]