URL rewrite

Discussion in 'ASP .Net' started by polilop, Sep 14, 2008.

  1. polilop

    polilop Guest

    polilop, Sep 14, 2008
    #1
    1. Advertising

  2. On Sep 14, 8:08 pm, "polilop" <filip.matosicSKINIovo@@st.htnet.hr>
    wrote:
    > 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.
    Alexey Smirnov, Sep 14, 2008
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Michel

    Rewrite URL with Session possible?

    Michel, Dec 9, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    411
    Michel
    Dec 9, 2003
  2. DDK
    Replies:
    1
    Views:
    388
    Eric Lawrence [MSFT]
    Mar 2, 2004
  3. =?Utf-8?B?amF2YXd6bA==?=

    URL Rewrite to classic ASP

    =?Utf-8?B?amF2YXd6bA==?=, Apr 29, 2005, in forum: ASP .Net
    Replies:
    0
    Views:
    3,097
    =?Utf-8?B?amF2YXd6bA==?=
    Apr 29, 2005
  4. =?Utf-8?B?VA==?=

    Rewrite asp url as aspx url?

    =?Utf-8?B?VA==?=, Jul 22, 2005, in forum: ASP .Net
    Replies:
    5
    Views:
    716
    gerry
    Jul 24, 2005
  5. Martin
    Replies:
    0
    Views:
    1,217
    Martin
    Apr 28, 2010
Loading...

Share This Page