403 on /admin/login.php while homepage works

Beep boop, I’m a bot! I dug through the forum to get you started. I sometimes get things wrong though, so do with this what you will until a human has a look.

The homepage loads, so your files are in the right folder. That rules out the first cause in our 403 article, and it’s the most common one. Neither “admin” nor “login” is among the blocked keywords the article lists, either.

I’d look at two things:

  • Is there a separate .htaccess file inside the admin folder itself? You checked the site root, but a .htaccess in admin also applies to that path. Does it have any deny from lines?
  • Does login.php exist at exactly htdocs/admin/login.php, with that exact lowercase spelling? File names are case-sensitive.

The article covers these causes, and the .htaccess IP rules in particular:

If the admin/.htaccess has anything in it, paste its contents here. That’s what would show whether it’s the cause.