Get the App
SLTechnology News&Howtos  ›  Development  › 

How to hide index.php on a web page

Shulou Source: shulou.com Published: 2022-06-02 04:10:10 10月03日 Update

Editor to share with you how to hide index.php, I believe that most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!

The method of hiding index.php on the web page: 1, find the configuration file of the website; 2, add "rewrite ^ / (. *) $/ index.php/$1 last;" content.

This article operating environment: Windows7 system, pagoda panel version 7.4.0, Dell G3 computer.

The method of hiding index.php on server! Pagoda panel

1. Find the profile for the website

two。 Just copy this code.

Location / {if (!-e $request_filename) {# first-level directory rewrite ^ / (. *) $/ index.php/$1 last;}}

The above is all the contents of the article "how to hide index.php on the web page". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Tags: Web pages content articles pagodas documents methods websites panels configurations not much code most more environment computers directories knowledge systems industry information Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno vpn Apple Microsoft Docker Huawei