0

我正在尝试在 Roundcubemail 的 compose.html 文件中添加 php 代码。我的 .htaccess 文件与 compose.html 位于同一目录中,如下所示:

AddType application/x-httpd-php .html

我还准备httpd.conf了几行文件,/etc/httpd/conf/httpd.conf这里需要的是:

LoadModule rewrite_module modules/mod_rewrite.so
AllowOverride All
AddType application/x-httpd-php .html

我也试过重启httpd服务。但是仍然没有在 compose.html 文件中执行 php 代码。有人可以帮我解决这个问题吗?

4

1 回答 1

2

Roundcube 的模板不在目录中评估。.htaccess这就是为什么您的更改httpd.conf没有任何效果。它们由 Roundcube 模板引擎进行评估。如果不深入研究 Roundcube 核心,您唯一的选择就是他们的皮肤模板标记语言

于 2013-11-28T20:14:40.563 回答