forked from notkohlrexo/IXWare-Source
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.htaccess
25 lines (21 loc) · 786 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
RewriteEngine On
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule ^ %{REQUEST_URI}.php [NC,L]
RewriteCond %{THE_REQUEST} /([^.]+)\.html [NC]
RewriteRule ^ /%1 [NC,L,R]
RewriteCond %{REQUEST_FILENAME}.html -f
RewriteRule ^ %{REQUEST_URI}.html [NC,L]
RewriteCond %{HTTP_HOST} ^78\.108\.216\.114$
RewriteRule .* - [F,L]
RewriteCond %{HTTP_HOST} ^api\.ixware\.co$
RewriteCond %{REQUEST_URI} !^/API/
RewriteRule ^(.*)$ /API/$1 [L]
RewriteCond %{HTTP_HOST} ^beta\.ixware\.co$
RewriteCond %{REQUEST_URI} !^/beta/
RewriteRule ^(.*)$ /beta/$1 [L]
Options -Indexes
Header add X-XSS-Protection "1; mode=block"
Header add Strict-Transport-Security "max-age=2592000"
Header add X-Frame-Options "SAMEORIGIN"
Header add X-Content-Type-Options "nosniff"
Header add Referrer-Policy "same-origin"