How do I make the redirects in go_router
package work correctly when uploading the website to cPanel? For example when I type in the url www.website.com/contact
I need it to open the /contact
route on my app. It works great when hosting locally and when I host it to Firebase with the rewrites file (https://stackoverflow.com/a/71956918/12099062), but I am unable to make the redirects work in cPanel.
I have tried configuring the Redirects in cPanel, but if I redirect any page to www.website.com
it just moves to the main page and if I redirect it to www.website.com/index.html
it just shows Exception: Bad State: No Element
.
Any help is really appreciated!