Welcome Guest, Not a member yet? Register   Sign In
Moving index.php to root
#1

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?
Reply
#2

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.
https://github.com/codeigniter4/CodeIgni...h-indexphp

You removed the security measure.
You need to protect all the source files (or other files in the project) by yourself.
Reply
#3

(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.
https://github.com/codeigniter4/CodeIgni...h-indexphp

You removed the security measure.
You need to protect all the source files (or other files in the project) by yourself.

Yes I am now adding this via htaccess
Reply




Theme © iAndrew 2016 - Forum software by © MyBB