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组件,它支持正则表达式,功能强大 textbox里内容换行问题 关于页面数据保持的问题,急急急!!! 50分求实际项目的源码免费下载网址 DropDownList1问题 如何让checkboxlist的项有两行时,两行的左边文字对齐. aspx页面一直出现 应用程序错误 连接超时???烦死了 怎样取消Application_EndRequest中的输出? 在datagrid中,点排序表达式排序的时候怎么样才能弹出个确认框? SQL2005 数据库连接问题 网上商店的建设问题. 获取客户端信息? 请教关于如何有效的控件用户权限的问题!!!!
<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>