瀏覽代碼

Update .htaccess

FusionPBX 6 年之前
父節點
當前提交
07e537a2d0
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      .htaccess

+ 3 - 0
.htaccess

@@ -1,5 +1,8 @@
 RewriteEngine    On
 
+#REST api
+RewriteRule ^(.*)/api/(.*)$                                                     $1/api/index.php?rewrite_uri=$2 [QSA]
+
 # $mac or $mac.cfg/xml
 RewriteRule     ^.*([A-Fa-f0-9]{12})(?:\.xml|\.cfg)?$                           app/provision/index.php?mac=$1 [QSA]