How to delete index.php directory?

coldplay.xixi
Release: 2023-03-02 18:46:01
Original
3304 people have browsed it

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
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template