blog:hugo_and_php_for_website_building
Hugo and PHP for building Websites
I built almost all my websites using PHP. Recently, I started to build simple HTML sites using Hugo, which was amazing. However, occasionally, I missed the flexibility of PHP for server side processing. I have tried to output PHP files instead of html files from Hugo but was not successful. Eventually, I resolved to make the change to the web server instead. Basically, one can change the setting of the server to parse .html files as php files. Several ways can be used. For example, one can use .htaccess
with the following
AddType application/x-httpd-php .html
One can also change the configure file to add the option for the directory.
Now, I can use Hugo together with PHP.
You could leave a comment if you were logged in.
blog/hugo_and_php_for_website_building.txt · Last modified: 2021/06/19 18:06 by johnny