I have created Laravel CRUD API and it works fine in localhost(without .htaccess file), but it fails on the live server. When I send a request it returns 404 not found error, or downloads a file depending on .htaccess content. How should I change .htaccsess file for makeing code to work.
this is my .htaccess file which returns not found error.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^(.*)$ public/$1 [L]
</IfModule>
RewriteRule ^(.*)$ public/$1 [L]says that your virtual host setting is that way.