how query w/o file name

Discussion in 'C#' started by 1why, Oct 10, 2006.

  1. #1
    often use:
    domain.co/ask.asp?ask=math

    how to become

    1) domain.co/?ask=math

    or

    2) domain.co/ask=math

    or

    3) domain.co/math

    or

    4) other options

    are they possible for asp? :confused:
     
    1why, Oct 10, 2006 IP
  2. DangerMouse

    DangerMouse Peon

    Messages:
    275
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #2
    This is the third URL rewriting question I'm gonna answer today ;)

    domain.co/ask.asp?ask=math

    1) domain.co/?ask=math

    If you change the file name from ask.asp -> default.asp this would work...

    2) domain.co/ask=math
    3) domain.co/math

    Both of these would require installing a ISAPI URL rewriting tool example - only possible if you have full access to the server so might not be an option!
     
    DangerMouse, Oct 11, 2006 IP
    1why likes this.
  3. Talker

    Talker Notable Member

    Messages:
    2,795
    Likes Received:
    108
    Best Answers:
    0
    Trophy Points:
    210
    #3
    How can we test if ISAPI URL rewriting is installed on the server?
    Can you give sample code to test..
     
    Talker, Oct 13, 2006 IP
  4. 1why

    1why Peon

    Messages:
    68
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #4
    this one does very helpful for me

    thank you
     
    1why, Oct 13, 2006 IP
  5. 1why

    1why Peon

    Messages:
    68
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #5
    whois.domaintools.com/yahoo.com

    how does this one work? :confused:
     
    1why, Oct 15, 2006 IP
  6. Talker

    Talker Notable Member

    Messages:
    2,795
    Likes Received:
    108
    Best Answers:
    0
    Trophy Points:
    210
    #6
    The subdomain whois.domaintools.com contains a default.asp file.
    When you type whois.domaintools.com/yahoo.com and press enter....
    yahoo.com is passed as a querystring to the default.asp page..

    To call the value of the querystring , which does not have any variable name. I think must me using something like

    request.querystring()

    Without any parameters.
    Someone correct me if i am wrong.
     
    Talker, Oct 15, 2006 IP