none
Keyword search in url RRS feed

  • Question

  • Hello Friends,

    I'm developing a new website for keyword search

     

    its a c# asp.net website with one page default.aspx and one keywords.xml

    keywords.xml contains code like below

     <Keywords>

    <keyword id="amazon">http://amazon.com </keyword>

    <keyword id="am">http://amazon.com </keyword>

     <Keywords>

     

    our url looks like below

    find.app.com

    Requirement

    If internal user from his/her browser types find.app.com/amazon  or find.app.com/am

    I have to find the keyword and redirect to specific site.

    Code every thing is ready and working but when a user types  find.app.com/<keyword>

    c# code is not hitting its throwing 404 directory not found error.

    Appreciate any help.

    thanks

    km

     


    kkm

    • Moved by Kristin Xie Wednesday, March 11, 2015 9:02 AM
    Tuesday, March 10, 2015 6:24 PM

All replies

  • I liked "Code every thing is ready and working" :) so why you asking?

    The error is because under find.app.com IIS directories there is no /amazon dir, so your code must redirect the user out of your site to amazon website. Please share you code and you must use the response.redirect method.


    Fouad Roumieh

    Tuesday, March 10, 2015 6:31 PM
  • Please post questions related to ASP.NET in the ASP.NET forums (http://forums.asp.net ).
    Tuesday, March 10, 2015 10:05 PM