Score:0

SvelteKit app and Wordpress Blog under one domain

la flag

I have an AWS EC2 server running with a PHP website and a Wordpress blog in a subfolder, both served with apache.

Structure:

I would like to rebuild the website with Sveltekit and Server-Side-Rendering.

Is it possible to run Sveltekit (most likely as a node-server) together with the blog (still under /blog) on the same server? Or is there a way to route all request to /blog to a different server where the blog is hosted?

Or is there a completely different approach that i could take?

Cheers.

cn flag
What's your webserver? Nginx, Apache? Did be no reason you can't set one up as a reverse proxy for sveltekit
PimVanLommel avatar
la flag
I use Apache as the webserver.
ua flag
"Is it possible to run Sveltekit (most likely as a node-server) together with the blog (still under /blog) on the same server?" -> yes, we run Magento and Sveltekit on the same server under the same domain with some rules in nginx to decide which route goes to Sveltekit and which one goes to Magento. You should be able to do the same with Apache.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.