Server side subfolder url doesn't work
-
Hi Guys,
I was having this problem before. The problem was like that: if you copy and paste an URL with a subfolder to a browser, it wasn’t working. the URL like:
I solved that problem when I changed publichPath config.
from
publicPath: ‘*’
to
publicPath: ‘/’
but now, I changed my frontend server to AWS Amplify. Now I’m getting access denied problem with it. Does anybody know a solution for that?
I’m using Quasar 0.14.7 version. AWS Amplify settings are correct. Access control is “Publicly viewable”.
-
I wonder, nobody had the same problem? I think it should be a common problem.
-
I found the solution in there: https://forums.aws.amazon.com/thread.jspa?threadID=294311&tstart=0
I need to useSuorce: “</^((?!.(css|gif|ico|jpg|js|png|txt|svg|woff|ttf)$).)*$/>”
Target: “/index.html”
Type: 200 (Rewrite)in Rewrites and redirects section in the AWS Amplify.