Remove public/index.php from URL

Posted by LaravelIndia - 6 months ago

Create or edit the main .htaccess file in the Laravel root directory

simple Edit the .htaccess file so that it contains the following source code:

<IfModule mod_rewrite.c>
   RewriteEngine On 
   RewriteRule ^(.*)$ public/$1 [L]
</IfModule>