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

How to remove index.php in wamp

青灯夜游
Release: 2023-03-09 14:18:02
Original
2009 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
Latest Issues
Is there a place where I can download wamp?
From 1970-01-01 08:00:00
0
0
0
Can mySQL in wamp be used alone?
From 1970-01-01 08:00:00
0
0
0
wamp domain name setting problem
From 1970-01-01 08:00:00
0
0
0
apache - WAMP cannot be used after installing IIS
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template