tag:blogger.com,1999:blog-865923359735383241.post1307090944657504287..comments2023-10-29T07:27:09.012-06:00Comments on Ccna final exam - java, php, javascript, ios, cshap all in one: Why does Twitter use a hash and exclamation mark in URLs, and how do they rewrite search URLs?Unknownnoreply@blogger.comBlogger3125tag:blogger.com,1999:blog-865923359735383241.post-24832744661848530742012-06-05T21:55:22.861-06:002012-06-05T21:55:22.861-06:00Yes, it redirects with HTTP 302.
By the way, &quo...Yes, it redirects with HTTP 302.<br /><br />By the way, "!" is used to eliminate the case with an empty hash. "http://url#" will make a browser to slide to the top.Userhttps://www.blogger.com/profile/11557173689529910046noreply@blogger.comtag:blogger.com,1999:blog-865923359735383241.post-26737901697553311922012-06-05T21:55:21.854-06:002012-06-05T21:55:21.854-06:00It's become the de facto standard that Google ...It's become the de facto standard that Google has established to ensure consistency and make ajax urls crawlable.<br /><br />See http://code.google.com/web/ajaxcrawling/docs/getting-started.html<br /><br />I believe they are using history.pushState. You can do history.back() in the console and it'll lead you back to the page.Userhttps://www.blogger.com/profile/11557173689529910046noreply@blogger.comtag:blogger.com,1999:blog-865923359735383241.post-1892649755929453502012-06-05T21:55:20.782-06:002012-06-05T21:55:20.782-06:00To answer the second part then: It is redirecting ...To answer the second part then: It is redirecting you to /#!/search.<br /><br />If you look at the response headers when going to http://twitter.com/britishdev (plug plug) you are returned a 302 (temporary redirect) with the Location header set as "Location: http://twitter.com/#!/britishdev"<br /><br />Yes JavaScript is then pulling all your detail in on the destination page but regardless that is where you are redirected to.Userhttps://www.blogger.com/profile/11557173689529910046noreply@blogger.com