Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Laravel - Forbidden You don't have permission to access / on this server

My laravel installation was working fine yesterday but today I get the following error:

Forbidden  You don't have permission to access / on this server.  Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request. 

Does anyone know where I am going wrong?

like image 544
panthro Avatar asked Aug 16 '13 11:08

panthro


People also ask

What are the reasons for 403 forbidden?

The 403 Forbidden error means that your server is working, but you no longer have permission to view all or some of your site for some reason. The two most likely causes of this error are issues with your WordPress site's file permissions or . htaccess file.


1 Answers

Create and put this .htaccess file in your laravel installation(root) folder.

<IfModule mod_rewrite.c>     RewriteEngine on     RewriteCond %{REQUEST_URI} !^public     RewriteRule ^(.*)$ public/$1 [L] </IfModule> 
like image 54
Alexey Avatar answered Sep 23 '22 09:09

Alexey