How Do I Enable Php In My .htm Files?

Hi,<br />I just moved my files in from another server. On my old server, I was able to configure a file to give me php support within .htm files. I prefer this over using .php or.phtml extensions. How can I configure my account so that I may do this on TCH as well?<br /><br />Thank you.<br />Roy<!--content-->
Mod rewrite or force type. Both are written into your .htaccess file.<br /><br />If you do a Goolge on either of those, you'll turn up tons of info. I have used both methods successfully at TCH.<br /><br />I'd go into more detail but it's very involved and there is so much good info within one or two clicks on Goolge.<!--content-->
Hey I figured it out, thanks!<br /><br />I just wanted to share what I did. The .htacess files are not viewable through FTP, but you can see them in the file manager in the CPanel. So make the .htaccess file locally and then upload to the folder. <br /><br />Anyway, this is the information I put into my .htaccess file:<br /><br /><!--quoteo--><div class='quotetop'>QUOTE</div><div class='quotemain'><!--quotec-->AddType application/x-httpd-php .htm<br />AddType application/x-httpd-php .html<br />ErrorDocument 401 /error_docs/401.htm<br />ErrorDocument 403 /error_docs/403.htm<br />ErrorDocument 404 /error_docs/404.htm<br />ErrorDocument 500 /error_docs/500.htm<br />ErrorDocument 501 /error_docs/501.htm<br />ErrorDocument 502 /error_docs/502.htm<br />ErrorDocument 503 /error_docs/503.htm<!--QuoteEnd--></div><!--QuoteEEnd--><br /><br />Just put this into the public_html folder and you should be good. I have not done much .htaccessing, so use at your own risk!<br /><br />Roy<!--content-->
 
Back
Top