Home >Backend Development >PHP Problem >How to hide php suffix in apache
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.
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!