Install Laravel on free account

fusio

Member
Messages
49
Reaction score
4
Points
8
Hello everyone and for those who use the Laravel framework.
The Laravel website appears on the internet at the following path:
domain.x10.mx/public. In the public_html directory add the .htaccess file with the following code:
Code:
<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]

</IfModule>
In the same way, the .htaccess file was removed from the public_html folder, the same thing happens

and where my site should really appear, that is domain.x10.mx, a big 403 Forbidden appears
Access to this resource on the server is denied!
Thanks in advance
 
Last edited:

fusio

Member
Messages
49
Reaction score
4
Points
8
I already solved it, I put my solution in case it helps someone:
Code:
RewriteEngine On
RewriteRule ^(.*)$ public/$1 [L]
I put the entire Laravel project in the public_html folder so I created an .htaccess file in the root folder and put the following in it

That is, redirect the request to the Laravel public folder. Ready.
 
Top