I have PHP application, on Ubuntu Apache web server.
Application have search feature, as GET type of request.
After submitting search string, Apache returns 403 Forbidden error, if I have more that one word as a search string, like:
https://my-url.com/publications/index/search:nikola%20tesla/submit:Submit
But it works fine, if I have only one word as search string, like:
https://my-url.com/publications/index/search:nikola/submit:Submit
I checked Apache log files, and it logs next error in this case:
AH10411: Rewritten query string contains control character or spaces
File /app/.htaccess looks like this:
RewriteEngine on
RewriteRule ^$ webroot/ [L]
RewriteRule (.*) webroot/$1 [L]
File /app/webroot/.htaccess looks like this:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?url=$1 [QSA,L]
Can you help me to solve this? Tried to fix it with directives in .htaccess but no luck.