SNT93
SNT93

Reputation: 476

Laravel project hosted in Cpanel gives HTTP ERROR 500

I created laravel 5.2 project and it works perfect in localhost.. Now when I uploaded to cpanel and tried to access through internet it gives me these errors.

access url : "http://orderproject.sutchelinks.com/public/"

error :

The orderproject.sutchelinks.com page isn’t working orderproject.sutchelinks.com is currently unable to handle this request. HTTP ERROR 500

what could be the reason??

Upvotes: 0

Views: 9292

Answers (1)

Rikard Olsson
Rikard Olsson

Reputation: 869

Create a .htaccess, add the following lines and put the file in your root folder. I see that you've got it working but you're not supposed to have the */public at the end.

<IfModule mod_rewrite.c>
     RewriteEngine On
     RewriteRule ^(.*)$ public/$1 [L]
</ifModule>

Try it, I got my Laravel application working with this.

Upvotes: 2

Related Questions