Home >Backend Development >PHP Problem >How to delete index.php directory?

How to delete index.php directory?

coldplay.xixi
coldplay.xixiOriginal
2020-07-21 11:23:083338browse

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 index.php directory?

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn