I am new in laravel I am just try to remove index.php in each route such as https://localhost/test/public/index.php/test1 into https://localhost/test/public/test1. I can used mod_rewrite code to solve this issue but does not work. My code in .htaccess file which can be inside public folder is as follow:-
Options -MultiViews
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
It shows error
The requested URL /test/public/test1 was not found on this server