Host a different site under the same domain

Hi!

Is there a possibility to host a different site under the same domain which hosted the Hugo site?

As an example, let’s say I have a domain called “example.com“. Now I want to host a Laravel web app on “example.com/app“. How can I do that? Hosting under a subdomain is not possible because of SEO reasons.

A Hugo site does not care if there’s another folder in your site’s root that is not created by hugo.

Just make sure your deployment process for each of the two does not touch the other one.

It merely depends on your deployment process and the Laravel setup. For the latter one, I would suggest to check out the Laravel docs

thanks for the suggestion. The issue is I have deployed my hugo site on cloudflare pages and the Laravel app is hosted on digital ocean. As per your suggestion, do I need to move the hugo site to digital ocean?

if you don’t want or not able to configure proxies, dns, redirects…

yes, one domain one server.

but it looks like that is possible

just an examle thread here no guarantee if this works: Can a website subdirectory live on a seperate host? - Software & Applications - Spiceworks Community

nothing I can help with

Just an idea (not sure if this can/will be feasible for you):

If the laravel is a subpage of Hugo and not too big, you could put into an appropriate location under static. The update of the laravel stuff is a different story then, though.