How to hide index.php on web pages
网页隐藏index.php的方法:1、找到网站的配置文件;2、添加“rewrite ^/(.*)$ /index.php/$1 last;”内容即可。
本文操作环境:Windows7系统、宝塔面板7.4.0版、Dell G3电脑。
网页怎么隐藏index.php?
服务端隐藏index.php的方法!!!宝塔面板
1.找到网站的配置文件
2.复制此代码即可
location / { if (!-e $request_filename) { #一级目录 rewrite ^/(.*)$ /index.php/$1 last; } }
推荐学习:《PHP视频教程》
The above is the detailed content of How to hide index.php on web pages. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics









