Question: Created .htaccess file in the root of the site. I wrote it

ErrorDocument 404 http://localhost/logika/index.php

But for some reason, it still gives the Denver error page. Can anyone come across? Restarted Denver, checked file for UTF-8 encoding without BOM.

I do not understand what needs to be done to redirect ...

    1 answer 1

    Generally used this design

     RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php?route=$1 [L,QSA] AddDefaultCharset UTF-8 

    .htaccess redirects to index.php page