简体   繁体   中英

Converting simple IIS 7 ReWrite Rule to Helicon Ape

I need to convert the syntax below (which is for IIS7 URL Rewrite) to Helicon Ape. Can someone shed some light?

<?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>

Thank you

Try something like:

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM