To remove index.php the page url mode_revrite, what's the error?

Need www.itoil.ru/***/index.php -> www.itoil.ru/***

There is a source .htaccess
Options +FollowSymLinks

An ErrorDocument 401 /EN/errors/401/
An ErrorDocument 403 /EN/errors/403/
An ErrorDocument 404 /EN/errors/404/
An ErrorDocument 500 /EN/errors/500/

RewriteEngine on
RewriteBase /

RewriteCond %{HTTP_HOST} ^www.it-oil.ru
RewriteRule ^(.*)$ http://www.itoil.ru/$1 [R=301,L]

RewriteCond %{HTTP_HOST} ^[^www\.]
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]

#News rewrite rule
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{DOCUMENT_ROOT}EN%{REQUEST_URI} !-d
RewriteCond %{REQUEST_URI} ^/EN/news/([^\.]+)$ [OR]
RewriteCond %{REQUEST_URI} ^/news/([^\.]+)$
RewriteRule ^(.*)/(.*)$ news/index.php?id=$2&%{QUERY_STRING} [L]

#Main rewrite rule
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} !^/EN/
RewriteRule ^(.*)$ %{DOCUMENT_ROOT}EN/$1?%{QUERY_STRING} [L]


Add
RewriteRule ^index.php$ / [QSA,R]
Options +FollowSymLinks

An ErrorDocument 401 /EN/errors/401/
An ErrorDocument 403 /EN/errors/403/
An ErrorDocument 404 /EN/errors/404/
An ErrorDocument 500 /EN/errors/500/

RewriteEngine on
RewriteBase /

RewriteCond %{HTTP_HOST} ^www.it-oil.ru
RewriteRule ^(.*)$ http://www.itoil.ru/$1 [R=301,L]

RewriteCond %{HTTP_HOST} ^[^www\.]
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]

RewriteRule ^index.php$ / [QSA,R]

#News rewrite rule
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{DOCUMENT_ROOT}EN%{REQUEST_URI} !-d
RewriteCond %{REQUEST_URI} ^/EN/news/([^\.]+)$ [OR]
RewriteCond %{REQUEST_URI} ^/news/([^\.]+)$
RewriteRule ^(.*)/(.*)$ news/index.php?id=$2&%{QUERY_STRING} [L]

#Main rewrite rule
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} !^/EN/
RewriteRule ^(.*)$ %{DOCUMENT_ROOT}EN/$1?%{QUERY_STRING} [L]

Method from the website tradebenefit.ru/kak-ubrat-iz-url-adresa-index-php
But it's not working, what wrong?
September 19th 19 at 00:19

Find more questions by tags Apache