2014-02-06 76 views
0

我需要將以下語法(用於IIS7 URL重寫)轉換爲Helicon Ape。有人可以點亮一些光線嗎?將簡單的IIS 7重寫規則轉換爲Helicon Ape

<?xml version="1.0" encoding="UTF-8"?> 
<configuration> 
<system.webServer> 
    <rewrite> 
     <rules> 
      <rule> 
       <match url="^api/([.*])$" /> 
       <action type="Rewrite" url="index.cfm/{R:1}" /> 
      </rule> 
     </rules> 
    </rewrite> 
</system.webServer> 

謝謝

回答

0

試着這麼做:

RewriteEngine on 
RewriteBase/
RewriteRule ^api/(.+)$ /api/index.cfm?$1 [NC,L] 
+0

使用上面的代碼時,我得到一個404。爲了澄清,我需要能夠將www.acme.com/API/index.cfm/CreateTemplate處理爲www.acme.com/API/CreateTemplate – saoco