.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.
精彩评论