- Copy index.php & htaccess file from public folder and paste it on root folder.
- open .htaccess file from root folder
- Paste below code on top of .htaccess page.12345RewriteEngine OnRewriteCond %{HTTPS} !=onRewriteCond %{THE_REQUEST} /public/([^\s?]*) [NC]RewriteRule ^ %1 [L,NE,R=302]RewriteRule ^((?!public/).*)$ public/$1 [L,NC]