I need to redirect urls containing capital Cyrillic letters to lower Cyrillic letters as they generate 404 errors on the website.
I have tried this:
RewriteEngine On
RewriteCond %{REQUEST_URI} [A-ZА-Я]
RewriteRule ^(.*)$ /${tolower:$1} [R=301,L]
But it appears not to be working. I still get the 404 error. When I try to visit this:
https://mywebsite.com/Продукт
I expect to be redirected to: https://mywebsite.com/продукт
but instead I get a 404 error. I am using litespeed webserver but as far as I know it uses the .htaccess file.
What could potentially solve this?