-
Notifications
You must be signed in to change notification settings - Fork 0
/
.htaccess_NAS
83 lines (61 loc) · 3.36 KB
/
.htaccess_NAS
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
#Ancienne URL :
Redirect 301 "/pages/Mal tèt.php" "https://negritube.fr/audio-1.html"
Redirect 301 "/pages/Konsyans.php" "https://negritube.fr/audio-2.html"
Redirect 301 "/pages/Eritaj.php" "https://negritube.fr/audio-9.html"
Redirect 301 "/pages/Misiyon.php" "https://negritube.fr/audio-22.html"
Redirect 301 "/pages/WIB.php" "https://negritube.fr/video-0.html"
Redirect 301 "/pages/DLO.php" "https://negritube.fr/video-1.html"
Redirect 301 "/pages/Fòs é kouraj.php" "https://negritube.fr/video-2.html"
Redirect 301 "/pages/Piétònn'la (Philippe BLAZE).php" "https://negritube.fr/video-3.html"
Redirect 301 "/pages/Sò a limanité.php" "https://negritube.fr/video-4.html"
Redirect 301 "/pages/Sonjé BINO (Philippe BLAZE).php" "https://negritube.fr/video-5.html"
Redirect 301 "/pages/LILY.php" "https://negritube.fr/video-6.html"
Redirect 301 "/pages/Petite_Marie.php" "https://negritube.fr/video-7.html"
Redirect 301 "/pages/Nou_mélé_Philippe_BLAZE.php" "https://negritube.fr/video-8.html"
Redirect 301 "/pages/Chanson_Hommage_aux_Gwo_Mòdan.php" "https://negritube.fr/video-9.html"
Redirect 301 "/pages/Philippe_BLAZE_piano_bar.php" "https://negritube.fr/video-10.html"
Redirect 301 "/pages/Sèl_si_on_gran_chimen.php" "https://negritube.fr/video-11.html"
Redirect 301 "/pages/Ekzòd.php" "https://negritube.fr/video-12.html"
Redirect 301 "/pages/Avé Maria Antillais.php" "https://negritube.fr/video-13.html"
Redirect 301 "/pages/Pénélope.php" "https://negritube.fr/video-14.html"
Redirect 301 "/pages/Konjé bonifié.php" "https://negritube.fr/video-15.html"
ErrorDocument 404 "https://negritube.fr/404.php"
#--------------------------------------------------
# Répertoire : /pages/
#--------------------------------------------------
# Le serveur doit suivre les liens symboliques :
Options +FollowSymlinks
# Activation du module de réécriture d'URL :
RewriteEngine on
RewriteBase /Multi-Plateform
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(?!Multi-Plateform/).+ $0 [NC]
#--------------------------------------------------
# Règles de réécriture d'URL :
#--------------------------------------------------
# AudioFile avec numéro track :
RewriteRule ^audio-(\d+)\.html$ https://paulluxwaffle.synology.me/Multi-Plateform/pages/AudioFile\.php?track=$1 [L]
# VideoFile avec numéro de track :
RewriteRule ^video-(\d+)\.html$ https://paulluxwaffle.synology.me/Multi-Plateform/pages/VideoFile\.php?track=$1 [L]
# Contact
RewriteRule ^contact\.html$ https://paulluxwaffle.synology.me/Multi-Plateform/pages/contact\.php [L]
# About
RewriteRule ^about\.html$ https://paulluxwaffle.synology.me/Multi-Plateform/pages/about\.php [L]
# Mentions Légales
RewriteRule ^mentions-legales\.html$ https://paulluxwaffle.synology.me/Multi-Plateform/pages/mentions-legales\.php [L]
# Assets
#RewriteRule ^assets(.*)$ https://paulluxwaffle.synology.me/Multi-Plateform/assets/$1 [L]
#Redirect "/Multi-Plateform/assets/" "https://paulluxwaffle.synology.me/Multi-Plateform/assets/"
#--------------------------------------------------
RewriteCond %{REQUEST_URI} ^/404/$
RewriteRule ^(.*)$ /404.php [L]
RewriteCond %{REQUEST_URI} ^/500/$
RewriteRule ^(.*)$ /404.php [L]
RewriteCond %{SERVER_PORT} 80
RewriteCond %{HTTP_HOST} ^(www\.)?negritube\.fr
RewriteRule ^(.*)$ https://negritube.fr/$1 [R,L]
RedirectMatch 403 ^/assets/?$
<IfModule mod_autoindex.c>
Options -Indexes
</IfModule>