@laverna_hirthe
To redirect to the public folder on Laravel, you can follow these steps:
- Open the public folder of your Laravel project.
- Locate the .htaccess file inside the public folder and open it.
- Look for the following code block:
RewriteEngine On
RewriteRule ^(.*)$ index.php [L]
- Replace the code block with the following code:
RewriteEngine On
RewriteRule ^(.*)$ public/$1 [L]
This code will redirect all requests to the public subfolder instead of the root folder.
- Save the .htaccess file and close it.
After making this change, all requests will be redirected to the public
folder automatically.