forked from oxwall/oxwall
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.htaccess
31 lines (27 loc) · 1.03 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
Options +FollowSymLinks
RewriteEngine On
AddEncoding gzip .gz
AddEncoding gzip .gzip
<FilesMatch "\.(js.gz|js.gzip)$">
ForceType text/javascript
</FilesMatch>
<FilesMatch "\.(css.gz|css.gzip)$">
ForceType text/css
</FilesMatch>
<FilesMatch "\.(jpe?g|png)$">
Header set Access-Control-Allow-Origin "*"
</FilesMatch>
# return gzipped files for the mobile app
RewriteCond %{HTTP:Accept-encoding} gzip
RewriteCond %{REQUEST_URI} ^/m/(.*.(js|css|map|xml|ttf|otf|json))$
RewriteRule (.*) ow_static/plugins/skmobileapp/src/%1.gz [END]
RewriteCond %{REQUEST_URI} ^/m/(.*)$
RewriteRule (.*) ow_static/plugins/skmobileapp/src/%1 [END]
RewriteCond %{REQUEST_URI} !^/index\.php
RewriteCond %{REQUEST_URI} !/ow_updates/index\.php
RewriteCond %{REQUEST_URI} !/ow_updates/
RewriteCond %{REQUEST_URI} !/ow_cron/run\.php
RewriteCond %{REQUEST_URI} !/e500\.php
RewriteCond %{REQUEST_URI} !/captcha\.php
RewriteCond %{REQUEST_FILENAME} (/|\.php|\.htm|\.feed|robots\.txt|sitemap\.xml|\.raw|/[^.]*)$ [NC]
RewriteRule (.*) index.php