URL rewrite

G

Guest

Is there a URL rewrite module that allows to rewrite url by
looking at the database.
Egxample:http://www.somesite.com/object.aspx?objectCountryId=1&objectId=22
now i look into the database, see that objectCountryId =1 in the database is
"France"
and ObjectId=22 is "James mannor", and then rewrite so url looks likehttp://www.somesite.com/object.aspx/France/Jamesmannor/

I think you can find a lot

http://urlrewriter.net
http://www.urlrewriting.net
http://www.google.com/search?hl=en&q=url+rewrite+module

In general, such links can be easily maintained using the
Request.PathInfo property.

In Page_Load() you will need to get

string[] query = Request.PathInfo.Split('/');

where query[0] will be "France" and query[1]="James mannor"

More about this property
http://weblogs.asp.net/scottgu/archive/2007/02/26/tip-trick-url-rewriting-with-asp-net.aspx

Hope this helps.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,756
Messages
2,569,534
Members
45,007
Latest member
OrderFitnessKetoCapsules

Latest Threads

Top