how to use .htaccess in laravel -


i made directory in host:

www.mysite.com/test/ 

and i've copied laravel folders inside it. when call url on browser show me this:

enter image description here

i think should make .htaccess .

here sample case , case:-

my case:-

url before .htaccess www.xyz.com/public/index.php url after .htaccess www.xyz.com  options +followsymlinks rewriteengine on  rewritecond %{request_filename} !-f rewriterule .* public/index.php [l] 

your case:-

url before .htaccess www.xyz.com/test/public/index.php url after .htaccess www.xyz.com  options +followsymlinks rewriteengine on   rewritecond %{request_filename} !-f rewriterule .* test/public/index.php [l] 

Comments