I am using Laravel 4.2 for an web application. In my localhost everthing was fine but when I uploaded my application to the server the routes of laravel did not work.
For example I am going to site.com/ and it opens the website, but when I go to site.com/some_route it tries gives me an 500 internal server error on the screen, and in the error logs I see File does not exist:site.com/some_route.
Also I can see internal folders of laravel from browser, I mean if I go to site.com/app browser opens the laravel's app folder.
In my main directory there is an empty .htaccess file, and in my public folder of laravel I have a .htaccess file includes following codes :
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews
</IfModule>
RewriteEngine On
# Redirect Trailing Slashes...
RewriteRule ^(.*)/$ /$1 [L,R=301]
# Handle Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
I really need help here, because I am not good at .htaccess files and servers, so I stuck for hours. Thank you