Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/asp.net/36.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

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
Asp.net 使用iis的url重写模块将下划线替换为破折号_Asp.net_Url_Web Config_Rewrite - Fatal编程技术网

Asp.net 使用iis的url重写模块将下划线替换为破折号

Asp.net 使用iis的url重写模块将下划线替换为破折号,asp.net,url,web-config,rewrite,Asp.net,Url,Web Config,Rewrite,我有关于Url重写模块的问题 我想实现永久重定向(301)到我的网站。url是,我想永久重定向 链接到 提前谢谢。我得到了解决方案。将以下内容放入web.config,但请记住,您的主机必须在iis中安装了Url重写模块 <rule name="Imported Rule 1-2" stopProcessing="true"> <match url="(search/product/ahmedabad.*/[^/]*?)_([^/_]

我有关于Url重写模块的问题

我想实现永久重定向(301)到我的网站。url是,我想永久重定向

链接到


提前谢谢。

我得到了解决方案。将以下内容放入web.config,但请记住,您的主机必须在iis中安装了Url重写模块

<rule name="Imported Rule 1-2" stopProcessing="true">
                    <match url="(search/product/ahmedabad.*/[^/]*?)_([^/_]*)$" ignoreCase="false" />
                    <action type="Redirect" url="{R:1}-{R:2}" redirectType="Permanent" />
                </rule>

我找到了解决方案。将以下内容放入web.config,但请记住,您的主机必须在iis中安装了Url重写模块

<rule name="Imported Rule 1-2" stopProcessing="true">
                    <match url="(search/product/ahmedabad.*/[^/]*?)_([^/_]*)$" ignoreCase="false" />
                    <action type="Redirect" url="{R:1}-{R:2}" redirectType="Permanent" />
                </rule>


我有问题
什么问题???似乎你忘了问你的问题!!!我已经要求我不能做301重定向。这就是问题。
我有问题
什么问题???似乎你忘了问你的问题!!!我已经要求我不能做301重定向。这就是问题所在。如果你有
~/search\u products/items\u list.aspx
目录和页面名称,你怎么做?如果你有
~/search\u products/items\u list.aspx
目录和页面名称,你怎么做?