This is my codeigniter .htaccess file, I was successful in replacing the index.php with method name. But I want to forcefully remove the index.php from the url i.e if someone add index.php in the url i want to remove it using .htaccess.
Like=> http://localhost/project/index.php/welcome to=> http://localhost/project/welcome
The project is still under development in xampp.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /project
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
# Enforce NO www
RewriteCond %{HTTP_HOST} ^www [NC]
RewriteRule ^(.*)$ http://domain.tld/$1 [L,R=301]
</IfModule>