Thank you for your response and the code. I’ll try it and give you a feedback
No, I have changed the permalinks on localhost and uploaded the site again and again, and I’ve tried with all permalink options. Didn’t help.
It’s not important for me anymore because I have lost the project in the meantime, but I believe it had something to do with bitnami installation and the way it organized files and folders.
Thanks for the help @markatmindsize