search
HomeBackend DevelopmentPHP ProblemHow to remove index.php in wamp
How to remove index.php in wampMay 08, 2021 pm 06:03 PM
index.phpwamp

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
教你创建虚拟主机并运行php项目(phpstudy + wamp)教你创建虚拟主机并运行php项目(phpstudy + wamp)Aug 07, 2022 pm 03:17 PM

本文涉及两款php的集成环境,这两款都含mysql + apache + php,phpstudy的功能比wamp要强大,并且十分简单容易上手。

【总结】WAMP无法解析PHP文件的原因和解决方法【总结】WAMP无法解析PHP文件的原因和解决方法Mar 22, 2023 am 10:38 AM

​WAMP是一个免费开源的Web服务器软件包,允许用户在Windows操作系统上搭建Web服务器环境。但是,当用户尝试在WAMP中运行PHP文件时,可能会遇到无法解析的错误。在本文中,我们将探讨WAMP无法解析PHP文件的原因和解决方法。

wamp中怎么修改php.ini文件wamp中怎么修改php.ini文件Mar 20, 2023 pm 03:33 PM

Wampserver是一个可以在Windows计算机上安装Apache、PHP和MySQL的软件包。使用Wampserver可以轻松地在本地计算机上开发和测试PHP网站。在开发过程中,我们可能需要修改PHP配置文件php.ini。本文将介绍如何在Wampserver中修改php.ini文件。

浅析WAMP环境中PHP文件乱码问题的解决方法浅析WAMP环境中PHP文件乱码问题的解决方法Mar 22, 2023 am 09:30 AM

在使用WAMP作为本地服务器环境的过程中,有时候会出现PHP文件乱码问题。这种问题不仅会影响到我们的代码编写,同时也会影响到我们网站的正常运行。在这篇文章中,我们将会介绍一些解决WAMP中PHP文件乱码的方法。

CentOS安装WAMP及CentOS安装完后进入桌面不能点CentOS安装WAMP及CentOS安装完后进入桌面不能点Feb 11, 2024 pm 04:51 PM

本文目录导读:CentOS安装WAMP安装Apache安装MySQL安装PHP配置WAMPCentOS安装完后进入桌面不能点重启桌面环境更新或重新安装驱动程序重置桌面配置更换桌面环境LINUX小知识分享CentOS安装WAMPCentOS是一种基于Linux的操作系统,用于服务器和桌面应用程序,WAMP是一个开发环境,用于在Windows操作系统上运行Web应用程序,在本文中,我们将介绍如何在CentOS上安装WAMP。安装Apache我们需要安装Apache作为Web服务器,在终端中执行以下命

tp3怎么隐藏index.phptp3怎么隐藏index.phpMar 03, 2023 am 10:18 AM

tp3隐藏index.php的方法:1、找到并打开“Application/Common/Conf/config.php”文件;2、通过修改“return array('URL_MODEL'=> 2,);”开启REWRITE模式即可。

lnmp 怎么隐藏index.phplnmp 怎么隐藏index.phpOct 21, 2022 am 10:12 AM

lnmp隐藏index.php的方法:1、打开“location ~ [^/].php”文件;2、修改内容为“location ~ [^/].php”;3、去掉“#try_files $uri =404;”前面的#符号;4、添加“rewrite "^/(.*)$" /index.php last;”内容;5、重启Nginx即可。

wampsever怎么在本地部署PHP项目wampsever怎么在本地部署PHP项目Mar 22, 2023 am 10:38 AM

Wampsever是一个PHP开发环境,可以帮助程序员在本地部署和测试PHP项目。本文将介绍如何使用Wampsever在本地部署PHP项目。

See all articles

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

Hot Tools

Dreamweaver Mac version

Dreamweaver Mac version

Visual web development tools

SAP NetWeaver Server Adapter for Eclipse

SAP NetWeaver Server Adapter for Eclipse

Integrate Eclipse with SAP NetWeaver application server.

Atom editor mac version download

Atom editor mac version download

The most popular open source editor

VSCode Windows 64-bit Download

VSCode Windows 64-bit Download

A free and powerful IDE editor launched by Microsoft

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use