Currently, I am in the process of building a website using VueJS and recently discovered how to use url parameters. Everything was working perfectly on my local machine - I could easily navigate to different pages by including parameters in the URL.
For example, I would type localhost:8080
to access the index site and then enter localhost:8080/param1/param2
to visit another page, all without any issues. I even noticed that typing localhost:8080/param1/param2
directly into the browser worked seamlessly as well, no need to first go to the index page.
However, once I built and uploaded the website to my hosting provider, I encountered a problem. I could no longer input the URL with parameters directly; it only worked when navigating from the index page.
An error message popped up:
Being relatively inexperienced with routing and web hosting, I tried researching for a solution online but came up empty-handed. Any assistance you could provide would be greatly appreciated.
Additional details based on comments I've received:
About my web host: I have access to Plesk where I can manage my settings. Within the platform, I see "Apache & nginx" settings that appear like this: