![]() |
Unable to remove "public" and "inde.php" from url in wampserver - 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: Unable to remove "public" and "inde.php" from url in wampserver (/showthread.php?tid=87467) |
Unable to remove "public" and "inde.php" from url in wampserver - Miha71 - 04-22-2023 Hello, I installed CodeIgniter 4.3.3. with composer and start project "cimvc". I also update App.php in order to remove public and index.php from url with: PHP Code: public string $baseURL = 'http://localhost/cimvc/'; Code: require FCPATH . 'app/Config/Paths.php'; Is it possible to fix it so it works equally in both servers / ways of testing. .htaccess file in root folder looks like this: PHP Code: # Disable directory browsing RE: Unable to remove "public" and "inde.php" from url in wampserver - InsiteFX - 04-22-2023 uncomment RewriteBase / RE: Unable to remove "public" and "inde.php" from url in wampserver - Miha71 - 04-23-2023 Thanks for quick answer. But no, it does not work. RE: Unable to remove "public" and "inde.php" from url in wampserver - Miha71 - 04-23-2023 (04-22-2023, 11:09 PM)InsiteFX Wrote: uncomment RewriteBase / It does not work. RE: Unable to remove "public" and "inde.php" from url in wampserver - InsiteFX - 04-27-2023 On Windows I have to add this to my .htaccess file for it to work. Code: # Remove index.php from URL |