Browse Source

#485 Permalinks for local storage

Alex Trofimov 10 năm trước cách đây
mục cha
commit
9cba556219
2 tập tin đã thay đổi với 2 bổ sung và 2 xóa
  1. 1 1
      .htaccess
  2. 1 1
      install/sql/system.sql

+ 1 - 1
.htaccess

@@ -10,7 +10,7 @@ Options -MultiViews -Indexes
     RewriteEngine on
     RewriteRule ^m/(.*)$  modules/index.php?r=$1 [QSA,L]
     RewriteRule ^page/(.*)$  page.php?i=$1 [QSA,L]
-    RewriteRule ^storage/([a-zA-Z0-9_]+)/([a-zA-Z0-9\.]+)  storage.php?o=$1&f=$2   [QSA,L]
+    RewriteRule ^s/([a-zA-Z0-9_]+)/([a-zA-Z0-9\.]+)  storage.php?o=$1&f=$2   [QSA,L]
 </IfModule>
 
 AddType image/svg+xml svg

+ 1 - 1
install/sql/system.sql

@@ -1106,7 +1106,7 @@ CREATE TABLE `sys_permalinks` (
 INSERT INTO `sys_permalinks` (`standard`, `permalink`, `check`, `compare_by_prefix`) VALUES
 ('page.php?i=', 'page/', 'permalinks_pages', 1),
 ('modules/?r=', 'm/', 'permalinks_modules', 1),
-('storage.php?o=', 'storage/', 'permalinks_storage', 1);
+('storage.php?o=', 's/', 'permalinks_storage', 1);
 
 
 -- --------------------------------------------------------