HelioHost Posted March 5, 2024 Posted March 5, 2024 Username: sanox, Server: Tommy, Main domain: rcp.helioho.stHello, how to edit .htaccess in order to render php code as html ? I triedfollowing but none works: AddHandler x-httpd-php56 .php .html AddHandler cgi-script .php .php3 .html .htm AddType application/x-httpd-php .html .htmSorry I spammed the discord also, but since I am not regular there I decideit is better to write an email.Thanks in advance for a reply.Best Regards,Ivaylo
Krydos Posted March 6, 2024 Posted March 6, 2024 .htaccess: <Files ~ \.(htm|html)$> SetHandler fcgid-script FCGIWrapper /var/www/cgi-bin/cgi_wrapper/cgi_wrapper .htm FCGIWrapper /var/www/cgi-bin/cgi_wrapper/cgi_wrapper .html Options +ExecCGI </Files> php.html: <?php echo "This file ends with .html!!"; Working example: https://krydos.heliohost.org/php/php.html
Recommended Posts