Moving index.php to root - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28) +--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forumdisplay.php?fid=30) +--- Thread: Moving index.php to root (/showthread.php?tid=87845) |
Moving index.php to root - danton - 06-07-2023 I moved index.php to the root of the project to make it easier to install the script on the server since I sell it. For development, I made a symlink index.php to public/index.php. Then I changed the line in index.php: PHP Code: require FCPATH . 'app/Config/Paths.php'; Did I do everything correctly and will there be unexpected errors later? RE: Moving index.php to root - kenjis - 06-07-2023 Quote:index.php is no longer in the root of the project! It has been moved inside the public folder, for better security and separation of components. You removed the security measure. You need to protect all the source files (or other files in the project) by yourself. RE: Moving index.php to root - danton - 06-07-2023 (06-07-2023, 07:46 PM)kenjis Wrote:Quote:index.php is no longer in the root of the project! It has been moved inside the public folder, for better security and separation of components. Yes I am now adding this via htaccess |