There are couple of ways for doing this:
- htaccess method:
- move the htaccess file from public folder to the root folder
- rename server.php to index.php
- that’s it really!
- The biggest flaw using this way is that .env file becomes accessible to web.
- Using Content Moving:
- Changing the document root on the server
Find this out: