How to remove public in base url? - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: Installation & Setup (https://forum.codeigniter.com/forumdisplay.php?fid=9) +--- Thread: How to remove public in base url? (/showthread.php?tid=79403) |
How to remove public in base url? - anuradhaga - 06-10-2021 I installed CodeIgniter 4.1.3 in my subdomain (new.nvslk.com). 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 "https://new.nvslk.com/public". I want to remove "public" from the URL. how do I do this? Thanks Anuradha RE: How to remove public in base url? - anuradhaga - 06-10-2021 Hi I think I found the solution. Edit root folder .env file "app.baseURL = 'https://new.nvslk.com/public' " to "app.baseURL = 'https://new.nvslk.com/' " |