开发者

.htaccess set phtml to be run as php

AddHandler application/x-httpd-php .php5 .php4 .php .php3 .php2 .phtml

AddType application/x-httpd-php .php5 .php4 .php .php3 .php2 .phtml

...within a .htaccess file but my .phtml files are not r开发者_如何学Cunning as php, they're just showing the code!

Have I missed something?


Is your server configured to read .htaccess files? To test this simply write random content in it. If the server still works the file is ignored otherwise it returns a 500 Internal Server Error.

To enable .hhtaccess file support in your configuration use the AllowOverride directive.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜