Moving index.php to root |
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? 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. (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 |
Welcome Guest, Not a member yet? Register Sign In |