Answer the question
In order to leave comments, you need to log in
How to redirect user to public?
The framework is in the
public_html/laravel directory
Accordingly, now access to the site is like this:
site.com/laravel/public
You need to remove pubilc from the path using only htaccess
Answer the question
In order to leave comments, you need to log in
all your ways to do it are crutches, there is one right way - to do it right:
1. Place all the framework files NEAR the /public_html folder
2. Copy the contents of the /public folder to the /public_html folder
3. In this folder, place . htaccess with a simple setup:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question