I uploaded my page about a day ago. I have a login page and when you login it takes you to the home page. There are a few buttons on the home page and they take you to different pages. The problem is, that when I click those buttons a ‘400 Bad Request nginx’ shows up. I thought it might be due to a typo in the HTML but I checked it twice and it seems OK. I also checked the internet but found nothing of use. Please help.
Well, HTML can’t cause this issue. HTML is parsed in the browser, so it won’t cause the server to break.
More likely, the strange URLs you’re using is triggering a security filter. Could you try renaming the file to not have so many weird characters to see if that solves it?
I’ll try. The reason my websites have weird URLs is because my login page is quite easy to bypass therefore I tried to make the urls a bit less memorable or guessable. Thankyou for the quick reply.
also, my websites contain CSS and javascript. I don’t know if this makes any difference.
@HaCk3r said:
also, my websites contain CSS and javascript. I don’t know if this makes any difference.
Javascript and CSS are also executed in the browser and are very unlikely to be the cause of this. Typically, server errors are caused by PHP code or .htaccess rules, because those are both executed on the server.
Speaking of PHP, you may wish to learn it because it allows you to build much more secure login systems (as in, you can actually force login rather than relying on hard to guess URLs).
It worked, thankyou admin!