Home > Article > Backend Development > How to remove index.php in wamp
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.
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=1remove the previous comment3. In the conf configuration file under Apache, look for
LoadModule rewrite_module modules/mod_rewrite.so
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!