a
This commit is contained in:
parent
f2a7dd441b
commit
1292b61845
|
|
@ -1,15 +1,13 @@
|
||||||
RewriteEngine On
|
RewriteEngine On
|
||||||
ServerSignature Off
|
|
||||||
|
|
||||||
# 1) Ne pas réécrire les fichiers et dossiers qui existent physiquement
|
# Ne pas réécrire les fichiers/dossiers existants
|
||||||
RewriteCond %{REQUEST_FILENAME} -f [OR]
|
RewriteCond %{REQUEST_FILENAME} -f [OR]
|
||||||
RewriteCond %{REQUEST_FILENAME} -d
|
RewriteCond %{REQUEST_FILENAME} -d
|
||||||
RewriteRule ^ - [L]
|
RewriteRule ^ - [L]
|
||||||
|
|
||||||
# 2) Exclure explicitement les endpoints PWA (sécurité supplémentaire)
|
# Exclure explicitement les fichiers PWA
|
||||||
RewriteRule ^(sw\.js|manifest\.json|offline\.html)$ - [L,NC]
|
RewriteRule ^(sw\.js|manifest\.json|offline\.html)$ - [L,NC]
|
||||||
RewriteRule ^assets/ - [L,NC]
|
RewriteRule ^assets/ - [L,NC]
|
||||||
|
|
||||||
# 3) Réécriture applicative
|
# Votre réécriture applicative
|
||||||
# /xxx/yyy/zzz -> index.php?controleur=xxx&action=yyy&id=zzz
|
|
||||||
RewriteRule ^([a-zA-Z]+)/?([a-zA-Z]+)?/?([a-zA-Z0-9]+)?/?$ index.php?controleur=$1&action=$2&id=$3 [NC,L]
|
RewriteRule ^([a-zA-Z]+)/?([a-zA-Z]+)?/?([a-zA-Z0-9]+)?/?$ index.php?controleur=$1&action=$2&id=$3 [NC,L]
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user