hi guys
this is my current situation: i have a static website created with VueJS and this is my routea
all working fine when i navigate
const routes = [
{
path: '/',
name: 'Home',
component: Home
},
{
path: '/erasmus',
name: 'erasmus',
component: Erasmus
},
]
the problem occurs when i give my website link to others
if i give them mydomain.it/erasmus they are redirected to the home page and not to Erasmus page
while instead i give them link with “www” (ie www.mydomain.io/erasmus ) al works fine
i think the problem is on redirect file that is currently like follow
/* /index.html 200
is it OK and the problem is somewhere else or i need to edit it? how?
thanks
perry
November 12, 2020, 6:05pm
2
hi there, before we dig in, did you see this brand new guide on debugging redirects?
I strongly suggest you give it a thorough read through and see if this fixes your problem:
Last checked by Netlify Support Team: September 2023.
Introduction
You’ve put blood, sweat and tears into building an incredible static site with all the bells and whistles. However, you’ve configured some redirect rules and you’ve come unstuck… they don’t appear to be working!
Ensure you’ve followed the correct guidance
Our redirects and rewrites document covers a broad range of use cases, from status codes to proxying another service and everything in between.
Ensure you’re using the correc…
if not, please post again, and we’ll try and troubleshoot.
i read it but cant figure out what’s the problem
Scott
November 13, 2020, 3:52pm
4
Unfortunately, I’m no Vue whiz however this discussion shows that that should be the only rule you need. I’d consider looking in to Vue and whether any other specific configuration will be necessary!