Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/url/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
使用web.config清除URL_Url_Url Rewriting_Web Config - Fatal编程技术网

使用web.config清除URL

使用web.config清除URL,url,url-rewriting,web-config,Url,Url Rewriting,Web Config,使用web.config,我需要能够转换以下URL: 进入如下所示的URL: 我尝试了以下方法,但无效: <rule name="Remove Query Param" stopProcessing="true"> <match url="^(.*)$" ignoreCase="false" /> <conditions> <add input

使用web.config,我需要能够转换以下URL:

进入如下所示的URL:

我尝试了以下方法,但无效:

<rule name="Remove Query Param" stopProcessing="true">
  <match url="^(.*)$" ignoreCase="false" />
    <conditions>
        <add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
        <add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
        <add input="{URL}" pattern="^/favicon.ico$" ignoreCase="false" negate="true" />
    </conditions>
              
    <action type="Rewrite" url="link.cfm?lid={R:1}" appendQueryString="true" />
</rule>

这方面的任何帮助都会很好