SiteSearch

Adds global search capabilities to October CMS

Back to SiteSearch Support

spacedagency24543
spacedagency24543

Hello! I use your plugin and now i have a problem. I set up redirects on website and now all not english search quaries get out something like "%D0%BE%D1%81%D0%BD%D0%BE%D0%". I understand that problem in encoding and redirects, but i'm not very good in php. Before seting up redirects search work excellent!

Last updated

OFFLINE
OFFLINE

How did you setup your redirects? Where do the search queries get out like "%D0%BE%D1%81%D0%BD%D0%BE%D0%"?

spacedagency24543
spacedagency24543

OFFLINE said:

How did you setup your redirects? Where do the search queries get out like "%D0%BE%D1%81%D0%BD%D0%BE%D0%"?

Redirects i setup in .htaccess

RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ https://www.%{HTTP_HOST}/$1 [R=301,L]
RewriteCond %{SERVER_PORT} !^443
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ https://www.blenda.by%{REQUEST_URI} [R=301,L]
RewriteCond %{REQUEST_URI} !\?
RewriteCond %{REQUEST_URI} !\&
RewriteCond %{REQUEST_URI} !\=
RewriteCond %{REQUEST_URI} !\.
RewriteCond %{REQUEST_URI} !\/$
RewriteCond %{REQUEST_URI} !(.*/backend.*)
RewriteRule ^(.*[^\/])$ /$1/ [R=301,L]

Search queries get out like "%D0%BE%D1%81%D0%BD%D0%BE%D0%" in "q" variable in URL.

1-3 of 3