How to write this .htaccess?

I have this folder structure is obtained :


in the dist folder is index.html and the js files, css, etc.
in the folder API, respectively the server part.
How to write .htaccess so that when you try to file the link is changed to dist/file_name, and if the request goes to the api did not change anything?
March 23rd 20 at 19:21
1 answer
March 23rd 20 at 19:23
Good day! As the saying goes: Give a man a fish you feed him for a day, teach a man to fish he'll eat for a lifetime! Read these articles:

Written htaccess can test here

Find more questions by tags htaccess