How to handle a URL:

http://site.ru/goods/test6/#/?brand[]=6&price_to=9999999999&sg=1&brand[]=12 

And select GET options

I try this way, but it does not work

 RewriteRule ^goods/(.*)/#/(/?)+$ index.php?do=goods&id_s=$1 [QSA,L] 
  • Where is php here? I see only one RewriteRule. To process GET parameters in mod_rewrite use RewriteCond %{QUERY_STRING} . - de_frag
  • It seems that everything after the hash was not transmitted to the server? - u_mulder pm

1 answer 1

Here is the solution.

 RewriteRule ^goods/(.*)/\x23/(/?)+$ index.php?do=goods&id_s=$1 [NE,QSA,L] 
  • ^goods/(.*)/\#/(/?)+$ - did the screening not work? - Kosta B.
  • No, screening does not work here. - Pavel Zhukovsky