optikalefx Posted August 7, 2007 Share Posted August 7, 2007 i want my .htm files with php code, but i dont want to change them all to .php so i read that i can put this: AddType application/x-httpd-php .php .php4 .php3 .html .htm .html in my .htaccess file. but it doesnt work i just have like home.htm as : <html> hi <? echo "hi again"; ?> </html> it just shows hi. it also gave me some internal 500 error a few times until i deleted everythign i the .htaccess file. ne ideas how to get this parse my .htm files? Quote Link to comment https://forums.phpfreaks.com/topic/63808-htaccess-parse-htm-files-with-php/ Share on other sites More sharing options...
trq Posted August 7, 2007 Share Posted August 7, 2007 You might try using the proper <?php tags. <html> hi <?php echo "hi again"; ?> </html> Quote Link to comment https://forums.phpfreaks.com/topic/63808-htaccess-parse-htm-files-with-php/#findComment-317989 Share on other sites More sharing options...
ToonMariner Posted August 8, 2007 Share Posted August 8, 2007 550 error suggest a server misconfiguration - your host may not allow you to set those parameters in the htaccess file. Ask your server admin dudes. Quote Link to comment https://forums.phpfreaks.com/topic/63808-htaccess-parse-htm-files-with-php/#findComment-317997 Share on other sites More sharing options...
optikalefx Posted August 8, 2007 Author Share Posted August 8, 2007 they said CGI was disabled. which doenst make any sense but i believe them, so i have to wait till tommorow Quote Link to comment https://forums.phpfreaks.com/topic/63808-htaccess-parse-htm-files-with-php/#findComment-318013 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.