handle #(HASH) in URL

Discussion in 'Apache' started by Ankit, Apr 26, 2009.

  1. #1
    Hi,

    I am using # character in URL. Apache terminate the all querystring after hash.

    Now How I get the complete url with hash in PHP.

    Anybody has Idea how to do it.

    ex. http:// domain/showthread.php?p=11275479#post11275479


    Some thing is available on apache website in Extended redirection.
     
    Ankit, Apr 26, 2009 IP
  2. mfscripts

    mfscripts Banned

    Messages:
    319
    Likes Received:
    4
    Best Answers:
    8
    Trophy Points:
    90
    Digital Goods:
    3
    #2
    I'm not sure you can access it since the browser doesn't seem to send a request to the server for anything with a #. As you probably know, # is a link to an anchor and hence there's no need for the browser to talk to the server.

    Why do you need it?
     
    mfscripts, Apr 28, 2009 IP
  3. Lpe04

    Lpe04 Peon

    Messages:
    579
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    0
    #3
    yeah, a hash is used to go to a specific point on a page. A page anchor
     
    Lpe04, Apr 28, 2009 IP