-
Notifications
You must be signed in to change notification settings - Fork 0
/
.htaccess
35 lines (24 loc) · 2.01 KB
/
.htaccess
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
35
# Turn rewrite engine on
#https://code.tutsplus.com/tutorials/using-htaccess-files-for-pretty-urls--net-6049
Options +FollowSymlinks
RewriteEngine on
#RewriteCond %{SCRIPT_FILENAME} !-d
#RewriteCond %{SCRIPT_FILENAME} !-f
#Options -MultiViews
# map neat URL to internal URL
RewriteRule ^service/list/$ webServices/RestController.php?resource=service&page_key=list [nc,qsa]
RewriteRule ^service/list$ webServices/RestController.php?resource=service&page_key=list [nc,qsa]
RewriteRule ^service/create/$ webServices/RestController.php?resource=service&page_key=create [nc,qsa]
RewriteRule ^service/create$ webServices/RestController.php?resource=service&page_key=create [nc,qsa]
RewriteRule ^service/delete/([0-9]+)/$ webServices/RestController.php?resource=service&page_key=delete&id=$1 [nc,qsa]
RewriteRule ^service/delete/([0-9]+)$ webServices/RestController.php?resource=service&page_key=delete&id=$1 [nc,qsa]
RewriteRule ^service/update/([0-9]+)/$ webServices/RestController.php?resource=service&page_key=update&id=$1 [nc,qsa]
RewriteRule ^service/update/([0-9]+)$ webServices/RestController.php?resource=service&page_key=update&id=$1 [nc,qsa]
RewriteRule ^product/list/$ webServices/RestController.php?resource=product&page_key=list [nc,qsa]
RewriteRule ^product/list$ webServices/RestController.php?resource=product&page_key=list [nc,qsa]
RewriteRule ^product/create/$ webServices/RestController.php?resource=product&page_key=create [nc,qsa]
RewriteRule ^product/create$ webServices/RestController.php?resource=product&page_key=create [nc,qsa]
RewriteRule ^product/delete/([0-9]+)/$ webServices/RestController.php?resource=product&page_key=delete&id=$1 [nc,qsa]
RewriteRule ^product/delete/([0-9]+)$ webServices/RestController.php?resource=product&page_key=delete&id=$1 [nc,qsa]
RewriteRule ^product/update/([0-9]+)/$ webServices/RestController.php?resource=product&page_key=update&id=$1 [nc,qsa]
RewriteRule ^product/update/([0-9]+)$ webServices/RestController.php?resource=product&page_key=update&id=$1 [nc,qsa]