在IIS中重写ASPX url的问题 [英] Issues with ASPX url rewrite in IIS

查看:145
本文介绍了在IIS中重写ASPX url的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello Experts,



圣诞快乐!



我有一个网络应用程序我有两个在IIS中设置的规则

一个如果要隐藏aspx扩展名

其他是redirecting.aspx扩展名,其中包含


$ b等模式$ b

Hello Experts,

Merry Christmas!

I have a web application where I had two rules set in IIS
One if to hide aspx extension
And other is redirecting.aspx extension with patterns like

^(.*)$ --> rewrite  and ^(.*).aspx$ --> redirect 









现在如果我点击url / default .aspx,我得到以下错误



respectively.

Now If I click on url/default.aspx, I get below error

The page isn't redirecting properly

Firefox has detected that the server is redirecting the request for this address in a way that will never complete.

    This problem can sometimes be caused by disabling or refusing to accept cookies.





但是如果我点击url / default,它没有任何问题



我现在对规则感到困惑,它应该适用于Default.aspx或Default或default。



你能帮帮我吗?



But If I click on url/default, It works without any issues

I am confused of the Rule now, It should either work for Default.aspx or Default or default.

Could you please help me with this?

推荐答案

- >重写和^(。*)。aspx
--> rewrite and ^(.*).aspx


- >分别重定向
--> redirect









现在如果我点击url / default .aspx,我得到以下错误



respectively.

Now If I click on url/default.aspx, I get below error

The page isn't redirecting properly

Firefox has detected that the server is redirecting the request for this address in a way that will never complete.

    This problem can sometimes be caused by disabling or refusing to accept cookies.





但是如果我点击url / default,它没有任何问题



我现在对规则感到困惑,它应该适用于Default.aspx或Default或default。



能帮帮我吗?



But If I click on url/default, It works without any issues

I am confused of the Rule now, It should either work for Default.aspx or Default or default.

Could you please help me with this?


这篇关于在IIS中重写ASPX url的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆