Support the ongoing development of Laravel.io →
Installation

Hi guys I hope you all having a great day I hosted my laravel app on the server but I got the following error 500 internal server error here is my htaccess file :

<IfModule mod_rewrite.c>
    <IfModule mod_negotiation.c>
        Options -MultiViews
    </IfModule>
    RewriteEngine On
    RewriteBase /
    # Redirect Trailing Slashes If Not A Folder...
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)/$ /$1 [L,R=301]

    # Handle Front Controller...
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^(.+)$ index.php [L]

    # Handle Authorization Header
    RewriteCond %{HTTP:Authorization} .
    RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
</IfModule>

and I created a directory where I put my app called afaq in www and then I copied public's files to www, I followed the same steps in here https://medium.com/laravel-news/the-simple-guide-to-deploy-laravel-5-application-on-shared-hosting-1a8d0aee923e#.4o0xjmot6

Sorry for my english

Last updated 3 years ago.
0

You may get that error for a variety of reasons.

Try changing ownership of all files to apache:apache and open the storage folder for writing

0

Sign in to participate in this thread!

Eventy

Your banner here too?

ahmedEloi ahmedeloi Joined 13 Apr 2015

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.