After apache update, my server started dropping this error in URL queries, containing spaces:
AH10411: Rewritten query string contains control characters or spaces
URL looks as follows:
www.example.com/modulename/searchfuncname/filter,searchstring,quick fox jumps/
.htaccess as follows:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)$ index.php?QueryString=%{REQUEST_URI} [B,L]
</IfModule>
I tried adding B flag, removing B flag, adding BNP flag and combinations of both or none.
Nothing helped. With any URL provided, server drops the very same error.
When I try to manually replace spaces with %20:
www.example.com/modulename/searchfuncname/filter,searchstring,quick%20fox%20jumps/
server replaces them back, gives 403 responce and drops AH10411 error.
But for some reason, if I replace space with + sign, server works. Disregarding BPN flag.
I tried all the variants, described in this thread: AH10411 error: Managing spaces and %20 in apache mod_rewrite none worked.