-
Notifications
You must be signed in to change notification settings - Fork 0
/
.htaccess
93 lines (84 loc) · 3.53 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
# Header set Connection keep-alive
<files .htaccess>
order allow,deny
deny from all
</files>
RewriteEngine on
Options +FollowSymlinks
Options -Indexes
## www -> no-www
# RewriteCond %{HTTP_HOST} ^www\.(.+)$
# RewriteRule ^ https://%1%{REQUEST_URI} [R=301,L,NE,QSA]
## http -> https
# RewriteCond %{HTTPS} off
# RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L,NE,QSA]
RewriteRule ^recherche/([a-zA-Z0-9-]+)$ index.php?p=search&mot=$1
RewriteRule ^kanji/([0-9]+)$ index.php?p=kanji&id=$1
RewriteRule ^groupe/([a-zA-Z0-9-]+)$ index.php?p=groupe_search&id=$1
RewriteRule ^accueil$ index.php?p=accueil
RewriteRule ^listes$ index.php?p=listes
RewriteRule ^liste_edit$ index.php?p=liste_edit
RewriteRule ^liste_edit/([0-9]+)$ index.php?p=liste_edit&id=$1
RewriteRule ^theme$ index.php?p=theme
RewriteRule ^historique$ index.php?p=history
RewriteRule ^cours$ index.php?p=courses
RewriteRule ^points$ index.php?p=points
RewriteRule ^compte$ index.php?p=account
RewriteRule ^compte/$ index.php?p=account
RewriteRule ^compte/([a-zA-Z0-9-]+)$ index.php?p=account&user=$1
RewriteRule ^stats$ index.php?p=statistiques
RewriteRule ^changelog$ index.php?p=changelog
RewriteRule ^contact$ index.php?p=contact
RewriteRule ^kana$ index.php?p=kana
RewriteRule ^nombres$ index.php?p=number
RewriteRule ^musique$ index.php?p=musics
RewriteRule ^musique/([a-zA-Z0-9-]+)$ index.php?p=music_show&slug=$1
RewriteRule ^sitemap\.xml$ sitemap.php [L]
<ifmodule mod_deflate.c>
# Compress HTML, CSS, JavaScript, Text, XML and fonts
AddOutputFilterByType DEFLATE image/svg+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/vnd.ms-fontobject
AddOutputFilterByType DEFLATE application/x-font
AddOutputFilterByType DEFLATE application/x-font-opentype
AddOutputFilterByType DEFLATE application/x-font-otf
AddOutputFilterByType DEFLATE application/x-font-truetype
AddOutputFilterByType DEFLATE application/x-font-ttf
AddOutputFilterByType DEFLATE application/x-javascript
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE font/opentype
AddOutputFilterByType DEFLATE font/otf
AddOutputFilterByType DEFLATE font/ttf
AddOutputFilterByType DEFLATE image/x-icon
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/javascript
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/xml
# Remove browser bugs (only needed for really old browsers)
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
Header append Vary User-Agent
</ifmodule>
<IfModule mod_expires.c>
# Turn on the module.
ExpiresActive on
# Set the default expiry times.
ExpiresDefault "access plus 10 days"
ExpiresByType image/jpg "access plus 1 year"
ExpiresByType image/svg+xml "access 1 month"
ExpiresByType image/gif "access plus 1 year"
ExpiresByType image/jpeg "access plus 1 year"
ExpiresByType image/png "access plus 1 year"
ExpiresByType text/css "access plus 1 month"
ExpiresByType text/javascript "access plus 1 month"
ExpiresByType application/javascript "access plus 1 month"
ExpiresByType application/x-font-ttf "access plus 1 year"
ExpiresByType font/ttf "access plus 1 year"
ExpiresByType image/ico "access plus 1 month"
ExpiresByType image/x-icon "access plus 1 month"
ExpiresByType text/html "access plus 600 seconds"
</IfModule>