Explorar o código

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

David %!s(int64=3) %!d(string=hai) anos
pai
achega
92feb95fc8
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      .htaccess

+ 3 - 1
.htaccess

@@ -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