【发布时间】:2021-02-23 22:48:04
【问题描述】:
在我的网站上,顶栏、菜单和页脚作为 php 在 html 中包含指令,不适用于 *.html 文件 只有 index.html
在 chrome 检查器中,我看到 de php include 显示为命令! 什么时候重命名议程.html -> 议程.php php_menu、php_topbar 和 php_footer 再次工作
过去我必须在“.htaccess”中放置一个“addhandler”
我怎样才能让 al html 作为 php 运行
index.html
<!--Top bar start-->
<?php
include 'php_topbar.php';
?>
php_footer.php
https://www.sportenmoedig.be/php_footer.php
php 版本: https://sportenmoedig.be/version.php
当前 PHP 版本:7.3.23
.htaccess
AddHandler 应用程序/x-httpd-php .php .htm .shtml .html
【问题讨论】: