Looking some frameworks like Code Igniter I see they use a “defined” check on the syspath to prevent users opening the files from the subfolders, and also an index.html placed on every folder.
Can’t I just use a mod_rewrite and get rid of these checks?
Is the mod_rewrite enough to let the users access only the index.php of the entire application?
Looking some frameworks like Code Igniter I see they use a defined check on
Share
You can move all the files for your application out of the web root and only have those files there that should be accessible by users.