-
Notifications
You must be signed in to change notification settings - Fork 1
/
.htaccess
64 lines (48 loc) · 1.9 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
######### Maintenance mode #########
######### Uncomment this block to go in maintenance mode #########
# Replace the XXX by your IP Adress
#RewriteEngine on
#RewriteCond %{REMOTE_ADDR} !^xxx\.xxx\.xxx\.xxx
#RewriteCond %{REQUEST_URI} !/wait.php$ [NC]
#RewriteCond %{REQUEST_URI} !\.(jpe?g?|png|gif|css|ico) [NC]
#RewriteRule .* /wait.php [R=302,L]
######### End Maintenance mode #########
######### Generated by Lwspanel #########
######### Ne pas modifier / Don't touch #########
# Redirections https mkwtas.com
RewriteEngine On
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteCond %{HTTPS} !on
RewriteCond %{HTTP_HOST} ^(?:www\.)?mkwtas\.com(?:.*)$ [nc]
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [redirect=301,L]
######### End Generated by Lwspanel #########
######### Customs redirects #########
# Redirect to Discord server
RewriteRule ^discord(.*)$ https://discord.gg/kpMxGKkGTW [redirect=301,L]
# Redirect to router
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.+)$ router.php?url=$1 [QSA,L]
# Remove .php extension
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule !.*\.php$ %{REQUEST_FILENAME}.php [QSA,L]
######### End Customs redirects #########
## X-Frame-Options ##
Header append X-FRAME-OPTIONS "SAMEORIGIN"
## X Content Type and Referrer-Policy ##
<IfModule mod_headers.c>
Header always set X-Content-Type-Options "nosniff"
Header always set Referrer-Policy "strict-origin-when-cross-origin"
Header set X-XSS-Protection "1; mode=block"
Header always set Permissions-Policy: interest-cohort=()
</IfModule>
<ifModule mod_gzip.c>
mod_gzip_on Yes
mod_gzip_dechunk Yes
mod_gzip_item_include file .(html?|txt|css|js|php|pl)$
mod_gzip_item_include handler ^cgi-script$
mod_gzip_item_include mime ^text/.*
mod_gzip_item_include mime ^application/x-javascript.*
mod_gzip_item_exclude mime ^image/.*
mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
</ifModule>