On the "Managing Authentication" tab, in the field where you can change the login link, I tried to change it from "example.com/moodle/login/index.php" to just "example.com/login" to make it easier to write out and access. Or, at least, that's what I thought it would do. Instead, whenever I try to login, it redirects me to the page "example.com/moodle/example.com/login", which does not exist, so I can't log in to fix it.
If I try to go directly to "example.com/moodle/login/index.php" - which I assume does still exist - it redirects me to "example.com/moodle/example.com/login", then says the latter page doesn't exist ("The requested URL /moodle/login/example.com/login was not found on this server. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.")
How would one go about fixing this? I could easily fix this if I were logged in (Site Admin > Plugins > Authentication > Manage Authentication > Login), but therein lies the problem.