创建URL重写规则时出现问题 [英] problem in creating url rewriting rule
本文介绍了创建URL重写规则时出现问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在实现url重写
我有很多页面,例如
i am implementing url rewriting
i have plenty of pages such as
http://www.xyz.com/company1/company_profile.htm
http://www.xyz.com/company2/company_profile.htm
http://www.xyz.com/company3/company_profile.htm
http://www.xyz.com/company4/company_profile.htm
http://www.xyz.com/company5/company_profile.htm
对于所有这些我创建了1个aspx页面的页面
现在我想用正则表达式定义规则
请帮助我为上述模式创建规则
for all those i have created 1 aspx page
and now i want to define rule with regular expression
please help me for creatie a rule for above pattern
<modulesSection>
<rewriteModule>
<rewriteOn>true</rewriteOn>
<rewriteRules>
<rule source="Default.html" destination="Default.aspx"/>
</rewriteRules>
</rewriteModule>
</modulesSection>
推荐答案
尝试这些文章:
使用ASP.NET路由进行URL重写 [使用ASP.NET for SEO进行URL重写 [ ^ ]
使用ASP.NET进行URL重写 [
Try these articles:
URL rewriting using ASP.NET routing[^]
URL Rewriting using ASP.NET for SEO[^]
URL Rewriting with ASP.NET[^]
hope it helps :)
这篇关于创建URL重写规则时出现问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文