How to remove index.php in wamp

青灯夜游
Release: 2023-03-09 14:18:02
Original
1870 people have browsed it

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!

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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!