Question mark in url (Apache)

I have a question mark issue in url.

For example: I have a url test.com/controller/action/part_1%3Fpart_2(where% 3F is a url-encoded question mark), and with this rewrite rule: RewriteRule .* index.php/$0 [PT]it should be passed to the infrastructure (Kohana) I use as is. At least I thought so.

The problem is that everything after the url-encoded question mark is processed as a GET parameter, so Kohana only gets it part_1, and I see that $_GETthere is an array key in it part_2. I think this is a web server problem (apache 2.2).

What should I do so that apache does not handle the url encoded question mark as an indicator of the GET parameter?

+3
source share
1 answer

The question mark is one of the reserved characters used as a delimiter between the PATH and QUERY components. Therefore, you cannot use it as part of the URI path.

0
source

Source: https://habr.com/ru/post/1763126/


All Articles