-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy path.htaccess
More file actions
34 lines (27 loc) · 1.83 KB
/
.htaccess
File metadata and controls
34 lines (27 loc) · 1.83 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
RewriteEngine On
<Files .env>
Order allow,deny
Deny from all
</Files>
#Xử lý Route ADMIN
RewriteRule ^admin/translate-list/([A-Za-z0-9-]+) index.php?module=admin&action=translate-list&id=$1 [L]
RewriteRule ^admin/language-edit/([A-Za-z0-9-]+) index.php?module=admin&action=language-edit&id=$1 [L]
RewriteRule ^admin/order-edit/([A-Za-z0-9-]+) index.php?module=admin&action=order-edit&trans_id=$1 [L]
RewriteRule ^admin/bank-edit/([A-Za-z0-9-]+) index.php?module=admin&action=bank-edit&id=$1 [L]
RewriteRule ^admin/service-edit/([A-Za-z0-9-]+) index.php?module=admin&action=service-edit&id=$1 [L]
RewriteRule ^admin/menu-edit/([A-Za-z0-9-]+) index.php?module=admin&action=menu-edit&id=$1 [L]
RewriteRule ^admin/category-edit/([A-Za-z0-9-]+) index.php?module=admin&action=category-edit&id=$1 [L]
RewriteRule ^admin/post-edit/([A-Za-z0-9-]+) index.php?module=admin&action=post-edit&id=$1 [L]
RewriteRule ^admin/user-edit/([A-Za-z0-9-]+) index.php?module=admin&action=user-edit&id=$1 [L]
RewriteRule ^admin/([A-Za-z0-9-]+) index.php?module=admin&action=$1 [L]
RewriteRule ^admin index.php?module=admin&action= [L]
#Xử lý Route CLIENT
RewriteRule ^client/order/([A-Za-z0-9-]+) index.php?module=client&action=order&trans_id=$1 [L]
RewriteRule ^client/service/([A-Za-z0-9-]+)/([A-Za-z0-9-]+) index.php?module=client&action=service&category=$1&service=$2 [L]
RewriteRule ^client/home/([A-Za-z0-9-]+) index.php?module=client&action=home&shop=$1 [L]
RewriteRule ^client/category/([A-Za-z0-9-]+) index.php?module=client&action=category&slug=$1 [L]
RewriteRule ^client/post/([A-Za-z0-9-]+) index.php?module=client&action=post&slug=$1 [L]
RewriteRule ^client/([A-Za-z0-9-]+) index.php?module=client&action=$1 [L]
RewriteRule ^client index.php?module=client&action= [L]
#Xử lý Route COMMON
RewriteRule ^common/([A-Za-z0-9-]+) index.php?module=common&action=$1 [L]