-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy path.htaccess
34 lines (26 loc) · 1017 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
26
27
28
29
30
31
32
33
34
<IfModule mod_rewrite.c>
RewriteEngine On
# RewriteBase /
Options +FollowSymLinks -Indexes
# RewriteCond %{HTTPS} off
# RewriteRule ^(.*)$ https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]
# Enable WWW
# RewriteCond %{HTTP_HOST} ^www.sundi3yansyah.herokuapp.com [nocase]
# RewriteRule ^(.*) https://sundi3yansyah.herokuapp.com/$1 [last,redirect=301]
# Disable WWW
RewriteCond %{HTTP_HOST} ^www.sundi3yansyah.herokuapp.com [NC]
RewriteRule (.*) https://sundi3yansyah.herokuapp.com/$1 [L,R=301]
RewriteCond %{REQUEST_URI} ^../sys.*
RewriteRule ^(.*)$ /index.php/$1 [L]
RewriteCond %{REQUEST_URI} ^app.*
RewriteRule ^(.*)$ /index.php/$1 [L]
RewriteCond $1 !^(index\.php|bower_components|robots\.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L,QSA]
</IfModule>
ErrorDocument 404 /index.php
ErrorDocument 403 /index.php
<IfModule mod_headers.c>
Header set X-XSS-Protection "1; mode=block"
</IfModule>