How to delete the index.php directory: first open the apache configuration file and remove the [#] symbol before the statement; then change [AllowOverride None] to [AllowOverride All]; finally create a notepad file, Just save it as a file with this name.
How to delete the index.php directory:
1. Open the apache configuration file, conf/httpd. conf:
#LoadModule rewrite_module modules/mod_rewrite.so
Remove the # in front of this line.
Search for AllowOverride None
(there are many places in the configuration file), look at the comment information, and change the line information related to .htaccess
to AllowOverride All
.
2. In the root directory of CI, that is, in the directory at the same level as index.php and system, create .htaccess
. Directly creating the file name will not succeed. You can first Create a note
file and save it as a file with this name.
Related learning recommendations: PHP programming from entry to proficiency
The above is the detailed content of How to delete index.php directory?. For more information, please follow other related articles on the PHP Chinese website!