Get the App
SLTechnology News&Howtos  ›  Development  › 

How does php remove part of the path

Shulou Source: shulou.com Published: 2022-06-03 17:34:02 11月13日 Update

This article mainly explains "how to remove part of the path from php". Friends who are interested might as well take a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn how php removes part of the path.

Specific problem description:

For example, I have a localhost/thesis/img/, that wants users to see only the paths in the img, but access to localhost/thesis and other paths will be forbidden. What should I do? Do I have to use ftp to do this?

Solution:

1. Find htaccess file.

2. Modify the content "AllowOverride All".

3. Put the htaccess file in the corresponding directory and set the content to Options-Indexes.

At this point, I believe you have a deeper understanding of "how to remove part of the path from php". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

Tags: Path content file learning practical deeper in interest method practical practical easy to operate method more friends for example users directories websites questions Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Redmi Docker MariaDB Shulou Information Shulou Tech Info