Rewrite Vue SPA router URLs? #1376
Unanswered
sajjadalis
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I was using Laragon on Windows and a Vue SPA was working with .htaccess rules.
I'm new to Valet and Nginx, and I'm not sure where to put Nginx rules exactly which I generated from this converter.
I'm not sure if these rules are correct. I have found similar questions on stackoverflow which have similar rules. e.g. https://stackoverflow.com/questions/49072584/vue-router-nginx-and-direct-link
I have been fiddling with
/Users/Sa/.config/valet/Nginx/vue.test
but it's not working.Vue SPA routes work fine when browsing from the homepage but if I go directly to a route then it's showing
404 - Not Found
error.Any help please?
Beta Was this translation helpful? Give feedback.
All reactions