.htaccess parsing files

The htaccess file is a configuration file in the Apache server, which is responsible for the configuration of web pages in the relevant directory. Through the htaccess file, you can realize: webpage
301 redirection, custom 404 error page, change file extension, allow/block access to specific users or directories, prohibit directory listing, configure default documents, etc.

How to use: Upload the .htaccess analysis file, and use its configuration to resolve the type of the whitelist file into a
php file type.
Upload the content of the .htaccess file as follows: (parse the test.jpg file on the server into a php file,
where the file can be freely configured)

<FilesMatch "test.jpg">
SetHandler application/x-httpd-php
</FilesMatch>

Upload another one-sentence Trojan, the file name is test.jpg, still visit test.jpg, but it will be
displayed in php

Guess you like

Origin blog.csdn.net/m0_52051132/article/details/128265808