D
D
Denis2014-10-01 12:23:55
Nginx
Denis, 2014-10-01 12:23:55

nginx. How to get part of url after # in php script?

example.com/blabla#some_param
Hike, I blunted a lot, but the part of the url that some_param.
$_SERVER[REQUEST_URI] =>blabla
in nginx setting
location / {
try_files $uri $uri/ /index.php?$uri&$args;
}
what could I forget?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey Senkevich, 2014-10-01
@cjbars

Anything after the hash is not sent to the server by browsers. This part serves exclusively for navigating the page.

M
Maxim Grechushnikov, 2014-10-01
@maxyc_webber

что у вас в die('<pre>'.print_r($_SERVER, true));

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question