I have a Hugo static website and I would like to host it on netlify or Forestry due to performance. However, I want to integrate a PHP based forum engine (Flarum) within the site like, domain.com/forum. The mentioned two is for only static site, not php.
How can I solve this? The easiest would be a VPS, I know, but I have no experience in it.
As you’ve already mentioned, Netlify is for static sites only, so it doesn’t have a PHP interpreter connected to its web server. Forestry.io doesn’t host anything, it’s a frontend for SSGs.
What I’d do is run your PHP software on a different system (a VPS or web host which provides dynamic tools like a database, PHP, CGI etc.). And make domain.com/forum redirect to your forum, by creating a file - static/forum.html - and use html redirection to send visitors to your forum.
Netlify is a hosting platform. (They also have an open sourced Content Management System.) The benefit over a VPS would be price and ease of use - they’ve got all the things you need for running a Jamstack site baked in.
Forestry is a content management system.
I use Netlify to host a few sites. And I’ve gone with forestry as my CMS of choice…though in my current workflow I generally use command line tools on my local machine.
Put the forum on a sub domain like forum.domain.com and host it somewhere else instead. Then simple add links between them. This will be far easier and allows each system and host to do what they are best at.
Thank you, I will do it! However, the sub domain is better from SEO perspective than domain.com/forum? As far as I know, it’s not better, even worse and need to stick to /forum structure. What do you think?