@jasen
To remove index.php from the URL in Laravel, follow these steps:
1 2 3 4 5 6 |
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>
|
1
|
sudo a2enmod rewrite |
1
|
sudo service apache2 restart |
With these steps, you should now be able to access your Laravel application without index.php in the URL.