I've built a Vue Cli app and it will replace a current static site at the top level domain.
However, the current site it is replacing needs to be kept alive (and working) within a sub-folder. Ideally, when navigating to this sub-folder site, I would like to be completely isolated and independent from Vue.
Under normal circumstances I could probably utilise the /static folder, but for this task I cannot. The 2 projects cannot be mixed together in this way.
Ideal scenario:
- https://example.com (Vue Cli project)
- https://example.com/my-page/ (Vue Cli project)
- https://example.com/another-page/ (Vue Cli project)
- https://example.com/old-site/ (Legacy static project)
- https://example.com/old-site/my-page/ (Legacy static project)
Is this possible? At the moment if I do this, Vue Router will give me a 404 due to how my routes are set up at the top-level (wildcard route):
const router = new VueRouter({
mode: 'history',
routes: [
{
path: '/',
name: 'AppHome',
component: AppHome
},
{
path: '*',
name: 'AppError',
component: AppError
}
]
})
I just basically want to allow linking off to a sub-folder on the server and not get Vue Cli / router involved.
Help much appreciated. Thank you.