The essence of the problem is this: a request comes in for a php file of the form http://mysite.ru/example.php#variable=1 ;

$_GET['variable'] does not work, because in the address bar is "#", not "?".

How to replace "#" with "?" ?

Google made it clear that perhaps this can be done in .htaccess, but it was not possible to make the correct entry in it.

  • one
    Can it just replace # на ? on the client? The hash is not transmitted to the server. - vp_arth
  • Access to the client, let's say no. We have only the address bar, you need to parse the data after the "#" symbol - Vladimir Shevchuk
  • And the second sentence to read? - vp_arth

0