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

How to delete index.php directory?

Jul 21, 2020 am 11:23 AM
index.php delete directory

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!

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

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Repo: How To Revive Teammates
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

How to delete a directory using the rmdir() function in PHP How to delete a directory using the rmdir() function in PHP Nov 18, 2023 pm 04:25 PM

How to use the rmdir() function in PHP to delete a directory requires specific code examples. In PHP, the rmdir() function is used to delete an empty directory. If the directory is not empty, it cannot be deleted. This article will introduce in detail how to use the rmdir() function to delete a directory and provide specific code examples. The use of the rmdir() function is quite simple. The following is its basic syntax: boolrmdir(string$dirname[,resource$c

How to hide index.php in lnmp How to hide index.php in lnmp Oct 21, 2022 am 10:12 AM

How to hide index.php in lnmp: 1. Open the "location ~ [^/].php" file; 2. Modify the content to "location ~ [^/].php"; 3. Remove "#try_files $uri =404; The # symbol in front of "; 4. Add the content "rewrite "^/(.*)$" /index.php last;"; 5. Restart Nginx.

How to hide index.php in tp3 How to hide index.php in tp3 Mar 03, 2023 am 10:18 AM

How to hide index.php in tp3: 1. Find and open the "Application/Common/Conf/config.php" file; 2. Turn on REWRITE mode by modifying "return array('URL_MODEL'=> 2,);".

Use the os.RemoveAll function to delete the specified directory, its subdirectories and files Use the os.RemoveAll function to delete the specified directory, its subdirectories and files Jul 26, 2023 pm 11:53 PM

Use the os.RemoveAll function to delete the specified directory, its subdirectories and files. In the Go language, you can use the os.RemoveAll function to easily delete the specified directory, its subdirectories and files. os.RemoveAll will recursively delete all contents in the specified directory, including subdirectories and files. The following is a simple sample code that demonstrates how to use the os.RemoveAll function to delete a specified directory. packagemainimport(

How to remove index.php from https URL How to remove index.php from https URL Mar 20, 2023 pm 03:35 PM

The string index.php often appears in the URLs of many websites. Although this file is very important, sometimes users want to remove this string from their URLs to make the website structure clearer.

PHP: Delete all files in a directory and then delete the directory PHP: Delete all files in a directory and then delete the directory Sep 11, 2023 pm 11:05 PM

Use glob to find all files matching a pattern. functionrecursive_directory_removal($directory){ foreach(glob("{$directory}/*")as$file){ if(is_dir($file)){ recursive_direc

How to remove index.php from the server How to remove index.php from the server Dec 19, 2022 am 10:24 AM

How to remove index.php from the server: 1. Open the php.ini file and change the content to "cgi.fix_pathinfo=1"; 2. Modify the configuration file of the corresponding virtual host; 3. Change "include enable-php.conf;" Replace with "include enable-php-pathinfo.conf;"; 4. Remove index.php and restart lnmp.

PHP function introduction—rmdir(): delete directory PHP function introduction—rmdir(): delete directory Jul 26, 2023 pm 01:19 PM

PHP function introduction—rmdir(): deleting directory introduction: In PHP, the rmdir() function is used to delete a specified directory. It is a very useful function that is often used when working with files and directories. The rmdir() function can delete an empty directory, but it cannot delete a non-empty directory. Usage syntax: boolrmdir(string$path[,resource$context]) Parameter description: path: directory to be deleted

See all articles