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
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
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community