I know this is a very popular question but I haven’t been able to find a working solution for Laravel 6. I am using windows Plesk to setup the Laravel project.
I don’t want to set my document root to the public folder.
I’ve tried the .htaccess mod_rewrite method
RewriteEngine On
RewriteCond %{REQUEST_URI} !^/public/
RewriteRule ^(.*)$ /public/$1 [L,QSA]
and also this
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
RewriteRule ^(.*)$ public/$1 [L]
</IfModule>
Is there a decent method of removing ‘public’ in a development environment that:Works with L6
Thanks