I am trying to get the requested URL from PHP.
The URL is like this: http://example.com/#!/controller/method/var1
I want to get the /controller/method/var1
part from PHP but all I get is http://example.com/
How Grooveshark and Twitter handle this?
Twitter, Grooveshark and Facebook (before) uses Javascript to get this Friendly URL.
Maybe you can use $_SERVER['REQUEST_URI'] to get it with php, i am not sure.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.