Home >Backend Development >PHP Problem >How to hide php suffix in apache

How to hide php suffix in apache

藏色散人
藏色散人Original
2020-08-18 10:57:183736browse

How to hide the php suffix name of apache: First find and open the "http.conf" file of apache; then modify the content to "DefaultType application/x-httpd-php" and save it.

How to hide php suffix in apache

Recommended: "PHP Video Tutorial"

Hide: Save your kkk.php as kkk, then Modify

#DefaultType text/plain
DefaultType application/x-httpd-php

in apache's http.conf so that apache will use the php engine to explain that the corresponding type of file cannot be found in mime (such as a file without a suffix) .

The above is the detailed content of How to hide php suffix in apache. 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