url重写实现减掉两个文件夹路径?????期盼大家的帮助!!! 比如网址是123.abc.com/web/123/index.html (其中:“web/123/” 这两个都是可变化的)如何实现:123.abc.com/index.html?谢谢各位了 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 这样试试<RewriterConfig> <Rules> <RewriterRule> <LookFor>(123.abc.com).*(/[^/]*)</LookFor> <SendTo>$1$2</SendTo> </RewriterRule> </Rules></RewriterConfig> 前面几个符号忘了转义了<RewriterConfig> <Rules> <RewriterRule> <LookFor>(123\.abc\.com).*(/[^/]*)</LookFor> <SendTo>$1$2</SendTo> </RewriterRule> </Rules></RewriterConfig> 这个代码是放在 Web.Config 里面吗? 如果跳转的页面少,使用ASP.NET2.0新特性:Url映射(无须下载组件)(地址栏显示的是123.abc.com/index.html,其实是123.abc.com/web/123/index.html)<system.web> <urlMappings> <add url="~/123.abc.com/index.html" mappedUrl="~/123.abc.com/web/123/index.html"/> </urlMappings></system.web> 那就用二楼的方法,Url重写,需下载URLRewriter组件,它支持正则表达式,功能强大 关于Global中重写URL造成CSS丢失的问题 请问怎样控制BoundField行对齐方式 ajax前台没有调用的问题 发布网站出错,指定输出的目录里面没有文件 gridview无法显示模糊查询的数据 如何在输出DataSet到DataGrid前修改字段内容 关于空值处理的问题 奇怪的问题,怎么好象点击事件执行了2次,帮忙瞅瞅。 有那为老大 做过登记内容(发票类)时, 编号自动生成 ,指点一下小第吧 后台程序写的js代码,为什么前台不执行啊,一个alert都弹不出啊啊。。。 获取客户端信息? 请教关于如何有效的控件用户权限的问题!!!!
<Rules>
<RewriterRule>
<LookFor>(123.abc.com).*(/[^/]*)</LookFor>
<SendTo>$1$2</SendTo>
</RewriterRule>
</Rules>
</RewriterConfig>
<Rules>
<RewriterRule>
<LookFor>(123\.abc\.com).*(/[^/]*)</LookFor>
<SendTo>$1$2</SendTo>
</RewriterRule>
</Rules>
</RewriterConfig>
(地址栏显示的是123.abc.com/index.html,其实是123.abc.com/web/123/index.html)
<system.web>
<urlMappings>
<add url="~/123.abc.com/index.html" mappedUrl="~/123.abc.com/web/123/index.html"/>
</urlMappings>
</system.web>