CodeIgniter Forums

Full Version: How to remove public in base url?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I installed CodeIgniter 4.1.3 in my subdomain (
I changed the app.php file base URL into my subdomain and move the public folder .access file and index.php file into the root directory. 
however, when I echo the base URL it shows like this "[font=-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"]".[/font]
I want to remove "public" from the URL. how do I do this?

I think I found the solution. Edit root folder .env file "app.baseURL = '' " to "app.baseURL = '' "