-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.htaccess
executable file
·53 lines (43 loc) · 2.11 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
######### Generated by Lwspanel #########
######### Ne pas modifier / Don't touch #########
# Redirections https homebrew-france.fr
RewriteEngine On
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteCond %{HTTPS} !on
RewriteCond %{HTTP_HOST} ^(?:www\.)?homebrew-france\.fr(?:.*)$ [nc]
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [redirect=301,L]
######### End Generated by Lwspanel #########
RewriteEngine On
# Redirection vers HTTPS
# RewriteCond %{HTTPS} !=on
# RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
# Redirection vers 503.html (exceptions pour certains dossiers et fichier 503.html)
# RewriteCond %{REQUEST_URI} !^/(scripts|devenir-helper|error|style|discord\.homebrew-france\.fr)(/.*)?$
# RewriteRule ^(.*)$ /error/503.html [L]
# Redirection www -> non-www
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ https://%1/$1 [R=301,L]
# Redirection de docs.homebrew-france.fr/ps2 vers homebrew-france.fr/docs/ps2
RewriteCond %{HTTP_HOST} ^docs\.homebrew-france\.fr$ [NC]
RewriteRule ^ps2$ https://homebrew-france.fr/docs/ps2 [R=301,L]
RewriteRule ^ps4$ https://homebrew-france.fr/docs/ps4 [R=301,L]
RewriteRule ^psvita$ https://homebrew-france.fr/docs/psvita [R=301,L]
RewriteRule ^switch$ https://homebrew-france.fr/docs/switch [R=301,L]
RewriteRule ^3ds$ https://homebrew-france.fr/docs/3ds [R=301,L]
RewriteRule ^dsi$ https://homebrew-france.fr/docs/dsi [R=301,L]
RewriteRule ^sideloading-ios$ https://homebrew-france.fr/docs/sideloading-ios [R=301,L]
RewriteRule ^revanced$ https://homebrew-france.fr/docs/revanced [R=301,L]
RewriteRule ^xbox$ https://homebrew-france.fr/docs/xbox [R=301,L]
# Erreurs personnalisées
ErrorDocument 404 /error/404.html
ErrorDocument 403 /error/403.html
ErrorDocument 503 /error/503.html
# Désactiver l'indexation
Options -Indexes
# CORS Headers
<IfModule mod_headers.c>
Header set Access-Control-Allow-Origin "*"
Header set Access-Control-Allow-Methods "GET, POST, PUT, DELETE, OPTIONS"
Header set Access-Control-Allow-Headers "Content-Type, Authorization"
Header set Content-Security-Policy "frame-ancestors 'self' https://open.spotify.com;"
</IfModule>