Home » Php » php – What does /#!/ mean in URL?

php – What does /#!/ mean in URL?

Posted by: admin July 12, 2020 Leave a comment

Questions:

Possible Duplicate:
What's the shebang (#!) in Facebook and new Twitter URLs for?

It usually comes straight after the domain name.

I see it all the time, like in Twitter and Facebook urls.

Is it some special sort of routing?

How to&Answers:

after # is the hash of the location; the ! the follows is used by search engines to help index ajax content. After that can be anything, but is usually rendered to look as a path (hence the /). If you want to know more, read this.

Answer:

# is the fragment separator. Everything before it is handled by the server, and everything after it is handled by the client, usually in JavaScript (although it will advance the page to an anchor with the same name as the fragment).