Score:0

Rewrite url transparently in Apache

br flag

I am needing to deploy a new frontend application on NextJS which is operating as a transition for a legacy WordPress site using the incremental adoption functionality in NextJS. We are looking at an edge service like Vercel, etc to manage the NextJS deployment so we don't have access to the hosts file.

WordPress is setup to do canonical redirects for a number of different situations (url rewrites, etc). Therefore I don't really want to disable to redirect functionality within WordPress.

Ideally I am looking to setup Apache so that it listens on legacy.mysite.com but reports to php as being www.mysite.com - Any ideas on how I can do this. That way I can see the following infrastructure:

user -> NextJS -> WordPress (user -> www.mysite.com -> legacy.mysite.com)

This way both WordPress and NextJS will report as being at www.mysite.com which is exactly what I want.

Also open to any other ideas on how to achieve this?

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.