htaccess UTF-8 error — CyberPanel - WebHosting Control Panel for OpenLiteSpeed

htaccess UTF-8 error

edited September 15 in Bug Report
First of all thank you for this great and amazing product!.
I am truly impressed!!!

Found only one problem:
The htaccess file, when adding rewrite rules insurrections does not work
at least not in my language (hebrew) or any other UTF-8 languages

for example, if I add this:

RewriteCond %{QUERY_STRING} a=work
RewriteCond %{QUERY_STRING} x=300
RewriteRule ^$ /טכנאים-ברמת-גן/? [L,R=301]

after saving a few time the Hebrew changes to a different words!!
and by that mess all the redirect

example of the new words after you save and reopen it could be

RewriteCond %{QUERY_STRING} a=work
RewriteCond %{QUERY_STRING} x=300
RewriteRule ^$ /טכנ-בגמת-ג/? [L,R=301]

which is of course page which does not exist, therefor this a critical issue.

I thought about saving the htaccess as UTF-8 instead of ASCII
I think I tried it, and still the htaccess messes the words

another issue is that if you put Hebrew in the query it will not work at all.

RewriteCond %{QUERY_STRING} worker=משה-טכנאים
RewriteRule ^$ /index/משה-טכנאים/? [L,R=301]

By the way, you can see that there is a problem, because even if you create a new fresh website . the hebrew letters in the new file are just wrong and create gibberish instead of Hebrew instructions which was meant to be

Here are the strange Hebrew instructions found in a new htaccess file.
# BEGIN WordPress
# הראות (שורות) בין "BEGIN WordPress" לבין "END WordPress" הן
# נוצר באן דינמי, ויש לשנו אותן רק באמצעות יטרים של וורדפר.
# ל שינוי בהוראת בין סממנים אלה דרס.

So this is a defiantly a bug, since the htaccess can not handle Hebrew font.

Thank you
Sign In or Register to comment.
CyberPanel Discord

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!