how to remove /files from file URL
7zx opened this issue · comments
polido commented
2023-01-24.11-40-01.mp4
polido commented
It works if i got directly into the files folder for example https://pomf.pt/files/spHmnXuW.PNG instead of https://pomf.pt/spHmnXuW.PNG, but i want it to work without the /files root on the URL, what do i do?
polido commented
I forgot to mention that i am not using any subdomain to host the files, that's probably why it only works using the /files on the main domain...
LolcatsV2 commented
What web server are you using? If you are using Nginx you can add an alternate try_files subfolder. Beware the security implications of this though.
Use a subdomain.
polido commented
Thanks, i guess i'll just use a subdomain.