Pépite pour les URL rewrite qui ne fonctionnait pas avec le / à la fin

This commit is contained in:
David 2022-03-29 16:03:38 +02:00
parent 2cf64dd23e
commit 92feb95fc8
1 changed files with 3 additions and 1 deletions

View File

@ -21,7 +21,9 @@ RewriteRule ^fonts/(.+)$ lib/fonts/$1 [L]
RewriteRule ^([0-9]+-[0-9]{1,2})/(.+)$ index.php?action=read&id=$1&file=$2 [L]
# html page
RewriteRule ^gallery/([0-9]+-[0-9]{1,2})/ index.php?action=html&id=$1&gallery=1&%{QUERY_STRING} [L]
RewriteRule ^([0-9]+-[0-9]{1,2})/ index.php?action=html&id=$1&%{QUERY_STRING} [L]
RewriteRule ^gallery/([0-9]+-[0-9]{1,2}) index.php?action=html&id=$1&gallery=1&%{QUERY_STRING} [L]
RewriteRule ^([0-9]+-[0-9]{1,2})/$ index.php?action=html&id=$1&%{QUERY_STRING} [L]
RewriteRule ^([0-9]+-[0-9]{1,2})$ index.php?action=html&id=$1&%{QUERY_STRING} [L]
# download force
RewriteRule ^dl/([0-9]+-[0-9]{1,2})/(.+)$ index.php?action=dl&id=$1&file=$2 [L]
# delete