Click here to Skip to main content
15,891,607 members
Please Sign up or sign in to vote.
4.40/5 (3 votes)
See more:
Hello everybody ,

I'm rewrite URL for my ASP.net website and I'm using Urlrewritingnet

Could anyone help me how to rewrite the rule for url below

C#
destinationUrl= "~/Catalog.aspx?CategoryID=$1"

How am i rewrite the rule for this

This is my url format string

C#
http://www.ngocclio.com/Loai-San-Pham/Xit-khoang-21/


In this url above : 21 is a ID

/Loai-San-Pham/Xit-Khoang ==> just a name i want to familiar with Google :D (something like that )

so can any one help me write a rule for this ?

C#
<add name= "rewrite" virtualUrl= "Some one help me here !!!" rewriteUrlParameter="ExcludeFromClientQueryString" destinationUrl= "~/Catalog.aspx?CategoryID=$1" ignoreCase= "true"/>


And how to write a rule when have two parameter ?

Here is my format url string

C#
http://www.ngocclio.com/Loai-San-Pham/Xit-khoang-21/Page-12


@After Page : 12 is ID

Thank you . I'm stuck righ here too long . I'm study by myself so I dont have anyone to ask !
Posted
Updated 4-Jun-14 19:36pm
v3

1 solution

I have found some useful articles for you.Please check that.Good Luck ! :)

URL Rewriting in Asp.net using URLRewriter

How to Implement and Utilize URL Rewriting with ASP.NET
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900