Search code examples
.htaccessmod-rewritespecial-characters

RewriteRule does not work with special characters


The following rule does not work in .htaccess, it gives a 404 Not Found error.

RewriteRule ^(.*)şota.html$ /eto.html [L,R=301,NC]

Why?

How can I use special characters in RewriteRule?


Solution

  • Upon advice, and with the help of comments, I am adding the answer;

    I downloaded the .htaccess file, changed the encoding from ANSI to UTF-8 via Notepad++, and it worked!