Good day, there is a site on DLE 9.0, how to edit the htaccess in the root of the site in order for the following redirects to work

с http://www.example.com на http://example.com с http://www.example.com/index.php на http://example.com с http://www.example.com/indeh.html на http://example.com 

Now the cap of the original htaccess looks like this

 DirectoryIndex index.php RewriteEngine On # Редиректы RewriteRule ^page/(.*)$ index.php?cstart=$1 [L] 

below i have added

 # редирект custom RewriteCond %{HTTP_HOST} ^www.example.com$ [NC,OR] RewriteCond %{HTTP_HOST} ^example.com/index.html$ [NC,OR] RewriteCond %{HTTP_HOST} ^example.com/index.php$ [NC] RewriteRule ^(.*)$ http://example.com/$1 [R=301,L] 

but for some reason I don’t want to work anything, do I understand correctly that I need to kill

RewriteRule ^page/(.*)$ index.php?cstart=$1 [L]

above, so that my redirects work or can it be somehow merged!?

thank

    0