Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post May 07, 2012 04:01 PM by Nasser Malik
Member
168 Points
172 Posts
May 07, 2012 11:40 AM|LINK
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
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>
All-Star
66014 Points
7639 Posts
Moderator
May 07, 2012 01:12 PM|LINK
do you have the option for using ROUTING instead of REWRITING?
This is a lot easier to implement (in my opinion) with Routing
May 07, 2012 03:36 PM|LINK
Star
11256 Points
1729 Posts
May 07, 2012 04:01 PM|LINK
see
http://weblogs.asp.net/scottgu/archive/2009/10/13/url-routing-with-asp-net-4-web-forms-vs-2010-and-net-4-0-series.aspx
http://msdn.microsoft.com/en-us/magazine/dd347546.aspx
http://weblogs.asp.net/jalpeshpvadgama/archive/2011/12/11/easy-url-rewriting-in-asp-net-4-0-web-forms.aspx
rakesh.sawan...
Member
168 Points
172 Posts
problem in creating url rewriting rule
May 07, 2012 11:40 AM|LINK
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
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>
Curt_C
All-Star
66014 Points
7639 Posts
Moderator
Re: problem in creating url rewriting rule
May 07, 2012 01:12 PM|LINK
do you have the option for using ROUTING instead of REWRITING?
This is a lot easier to implement (in my opinion) with Routing
v5.1 of iTracker (Inventory Tracker Starter Kit) is out, Download it now!
rakesh.sawan...
Member
168 Points
172 Posts
Re: problem in creating url rewriting rule
May 07, 2012 03:36 PM|LINK
can u explain or give some reference to do this with Routing
Nasser Malik
Star
11256 Points
1729 Posts
Re: problem in creating url rewriting rule
May 07, 2012 04:01 PM|LINK
see
http://weblogs.asp.net/scottgu/archive/2009/10/13/url-routing-with-asp-net-4-web-forms-vs-2010-and-net-4-0-series.aspx
http://msdn.microsoft.com/en-us/magazine/dd347546.aspx
http://weblogs.asp.net/jalpeshpvadgama/archive/2011/12/11/easy-url-rewriting-in-asp-net-4-0-web-forms.aspx
Skype: maleknasser1