0

When I search for Cee'd it converted as Cee%27d and shows nothing for search term.

If there is punctuation or diacritic, it doesn't search anything.

I don't know since when it started do it.

Any idea what might be the problem?

1 Answer 1

0

I found the solution.

I'd been using 301 redirect in .htaccess for URL trailing slashes removal with directives.

RewriteCond %{request_method} ^GET$
RewriteCond %{REQUEST_URI} ^(.+)/$
RewriteRule ^(.+)$ %1 [L,R=301]

I added NE|noescape flag. Such as & or ? or diacritic are no longer converted.

Final RewriteRule:

RewriteCond %{request_method} ^GET$
RewriteCond %{REQUEST_URI} ^(.+)/$
RewriteRule ^(.+)$ %1 [L,R=301,NE]

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.