.htaccess - Remove index.php from routes in Lumen/Laravel -


i move lumen project ubuntu.

i cant access defined routes without index.php.

i can access routes in way:

public/index.php/api/user 

i tried command a2enmod rewrite , restart apache2 not work me. not know if file .htaccess in public file.

any help?

put in .htaccess

rewriteengine on rewritebase /  rewritecond %{the_request} /index [nc]     rewriterule ^ / [r=302,l,ne]   

see how-to-remove-public-from-url-in-laravel
, remove index.php url laravel 5


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -