Home  >  Article  >  Backend Development  >  How to remove index.php in wamp

How to remove index.php in wamp

青灯夜游
青灯夜游Original
2021-05-08 18:03:241934browse

Removal method: 1. In the configuration file, set the value of "URL_MODEL" to 2; 2. In php.ini, remove the comment in front of the "cgi.fix_pathinfo=1" item; 3. In In the conf configuration file under Apache, remove the comment in front of the "mod_rewrite.so" item.

How to remove index.php in wamp

The operating environment of this tutorial: windows7 system, PHP7.1&&wampserver version 3.1.7, DELL G3 computer

##wamp Configure to remove index.php

1. Set

'URL_MODEL'=>2,

in the configuration file For 2.

2. In php.ini

cgi.fix_pathinfo=1

remove the previous comment

3. In the conf configuration file under Apache, look for

LoadModule rewrite_module modules/mod_rewrite.so

How to remove index.php in wamp

Remove the previous comment

Restart apache

Recommended study: "

PHP Video Tutorial"

The above is the detailed content of How to remove index.php in wamp. 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