Explorar el Código

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

David hace 3 años
padre
commit
92feb95fc8
Se han modificado 1 ficheros con 3 adiciones y 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