Recently when i saw google results page, the query and other parameters where passed with # (hash) instead of the usual “?”
Also, in facebook i saw the same thing. This was quite interesting and after a simple search with google, i found the results related to perl and Ruby but no result with PHP.
Is it possible to pass parameters with # in PHP instead of “?” or is this possible only with perl/Ruby. This will be useful and search engines will not parse the parameters in the URLs.
Any ideas will be helpful to me.
Traditionally, the
#told the browser to automatically scroll to a particular point in the page, which was (and still is) often used to implement links from one part of a page (e.g. a table of contents) to another (e.g. a section heading).However, it also has the effect of causing the URL containing the
#to be recorded in the history, even if it’s identical to the previous URL except for the#and what follows it. (In other words, the user is still on the same page.) This means that the back button can be used to get back to the state that you were previously in, even if that state-change doesn’t correspond to a page-load.Modern AJAX applications therefore often use it to signify that something has happened that the user might want to “go back” from.