I
I
insanel2020-08-28 03:40:29
Vue.js
insanel, 2020-08-28 03:40:29

How to set up hosting under vue-router?

I have a SPA without a back, but with a vue router
It has several routes, including dynamic

ones

. " - throws 404

The vue router documentation describes various solutions, but the hosting does not allow editing nginx / apache , how to solve this issue?

Here is a link to the off-doc
https://router.vuejs.org/ru/guide/essentials/histo...

Maybe I misunderstood something

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alex Glebov, 2020-08-28
@insanel

Create a .htaccess file at the root and write in it what is in the apache dock. If it doesn't work, ask your hoster how to redirect all requests to your application entry point.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question