Buttons don't work

My website uses buttons to navigate between different sites (gallery, notes, favourite links, chat and home). All buttons work fine except gallery and chat. When I press them a 404 error appears. I have checked the code multiple times but I can’t find the issue. When I type the link in the search bar a 403 ‘forbidden’ error shows up. I thought it might be to do with the server configuration so I went to cPanel X but couldn’t find any solution. Thankyou for your help.

Could this be the same issue as with your other topic?

https://forum.infinityfree.com/discussion/986/keep-getting-400-bad-request-nginx-error#latest

I believe not. The URLs are short and everything else works. I thought maby the server configuration might be faulty. Thanks for your help.

I tried to open my website on another computer. For some reason the gallery works fine there. Also, the chat is still broken.

Correction, I managed to fix the chat. All I had to do was type in the whole URL in the HTML. The gallery is not fixed however.