The .htaccess file contains

 DirectoryIndex index.php AddDefaultCharset utf-8 

On the index.php page, instead of the Cyrillic alphabet, questions are displayed, and on any other page (even simply by copying the contents and changing the name) everything is displayed normally. How can this be fixed?

Content index.php

 <!DOCTYPE html> <html> <head> <title>Магазин бытовой техники</title> <link rel="stylesheet" href="/css/style.css"> </head> <body> <div id="registerform"> <form action="header.php" method="POST"> <p>Имя</br> <input type="text" name="name"></p> <p>Фамилия</br> <input type="text" name="surname"></p> <p>Пароль</br> <input type="password" name="password"></p> <p>Повтор параля</br> <input type="password" name="repassword"></p> <p>Логин</br> <input type="text" name="login"></p> <p>E-mail</br> <input type="text" name="password"></p> <button type="submit">Отправить</button> </form> </div> </body> </html> 
  • 2
    Changing the encoding in the index file to utf-8 без BOM ? - Alexey Shimansky

1 answer 1

I deleted this file and created a new one, which I saved in utf-8 without BOM

  • It was possible not to delete, but simply to change the encoding through the panel - Alexey Shimansky